- 13 Mar, 2012 - 1 commit
-
-
Honglei Zhang authored
According to SQLite documentation, a database connection handle is usually returned, even if an error occurs. This behavior has caused Qt to leak memory when opening a database is failed. Now, even if sqlite3_open_v2() does not return SQLITE_OK, Qt tries to release SQLite database handle by calling sqlite3_close(). Task-number: QTBUG-15773 Change-Id: I6538e2897216828a9cfb95b7d4a5cec437aa6c28 Reviewed-by:
Mark Brand <mabrand@mabrand.nl> Reviewed-by:
Andy Shaw <andy.shaw@digia.com> Reviewed-by:
Michael Goddard <michael.goddard@nokia.com>
-
- 07 Mar, 2012 - 1 commit
-
-
Andy Shaw authored
When an aggregate function is used for a column in a SQL resultset then it should ensure that the right data type is reported for that column. This also concerns expressions when the returned column does not map directly to a table column. Test included for this. Task-number: QTBUG-22038 Change-Id: I07487694c0ed393d46af06e232914fe923356a99 Reviewed-by:
Mark Brand <mabrand@mabrand.nl> Reviewed-by:
Honglei Zhang <honglei.zhang@nokia.com>
-
- 08 Feb, 2012 - 1 commit
-
-
João Abecasis authored
To hide the IsPointerToTypeDerivedFromQObject monstruosity :-) Documentation for Q_DECLARE_METATYPE and qRegisterMetaType was updated to mention requirements on registered types and how they can be circumvented for pointer types with the new macro. Change-Id: If83b037a8e2f28761eb903525e87008107298801 Reviewed-by:
Harald Fernengel <harald.fernengel@nokia.com> Reviewed-by:
Stephen Kelly <stephen.kelly@kdab.com>
-
- 03 Feb, 2012 - 1 commit
-
-
Andy Shaw authored
The 'real' datatype should be seen as a QVariant::Double type and not as a QVariant::String type otherwise it does not get presented correctly when using a non Qt application to access it. Test is included for QSqlQuery. Task-number: QTBUG-16373 Change-Id: Ie323ce49eb95e4d6bb4c3814ba9a957a63f4b259 Reviewed-by:
Yunqiao Yin <charles.yin@nokia.com> (cherry picked from commit b23631015c23a49e3b4d296ea0a6266bfce3d4f1) Reviewed-by:
Mark Brand <mabrand@mabrand.nl>
-
- 30 Jan, 2012 - 1 commit
-
-
Jason McDonald authored
As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I311e001373776812699d6efc045b5f742890c689 Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com>
-
- 24 Jan, 2012 - 1 commit
-
-
Stephen Kelly authored
This is a source incompatible change for Q_DECLARE_METATYPE(T*), which now requires T to be fully defined. The consequences of this are: * Forward declared types can no longer be declared as a metatype. (though this is a very uncommon thing to do). There is a trivial workaround where necessary. Change-Id: Id74c40088b8c0b466fcd7c55abd616f69acc82c8 Reviewed-by:
Lars Knoll <lars.knoll@nokia.com>
-
- 23 Jan, 2012 - 1 commit
-
-
Jason McDonald authored
Replace Nokia contact email address with Qt Project website. Change-Id: I431bbbf76d7c27d8b502f87947675c116994c415 Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com>
-
- 05 Jan, 2012 - 1 commit
-
-
Jason McDonald authored
Change-Id: I02f2c620296fcd91d4967d58767ea33fc4e1e7dc Reviewed-by:
Rohan McGovern <rohan.mcgovern@nokia.com>
-
- 12 Dec, 2011 - 1 commit
-
-
Honglei Zhang authored
Even though it is stated in the documentation that the SQL driver must remain valid during the life time of QSqlQuery, there are users who don't follow the rule. It's common that the destructor of QSqlQuery is called after the driver is already deleted. This fix checks the validity of the SQLite driver before QSqliteResult uses it in destructor. Task-number: QTBUG-16967 Change-Id: If0f52113f12e14102da1671cd6e12bdaa267114f Reviewed-by:
Yunqiao Yin <charles.yin@nokia.com>
-
- 30 Nov, 2011 - 1 commit
-
-
Honglei Zhang authored
If an ongoing query is not finalized before close function is called, sqlite driver still tries to close the connection to sqlite. In this case, sqlite reports an error to sqlite driver which is not reported to the client. The failure in close causes connection to sqlite unclosed and memory is not freed. This fix tries to finalize all queries before close function is called. The close function should succeed. Task-number: QTBUG-16967 Change-Id: I2f10a2a9017446a9d44b693b00464a89625e3602 Reviewed-by:
Yunqiao Yin <charles.yin@nokia.com>
-
- 23 Nov, 2011 - 1 commit
-
-
Honglei Zhang authored
SQLite driver support only one statement at a time. This fix makes the exec and prepare call failed if more than one statements are given. This is bug fix for QTBUG-21884. Also the behaviour is documented in the API specification. Task-number: QTBUG-21884 Change-Id: If1e25a0dd9f9ee38961ef478fc7909f6b05e360a Reviewed-by:
Yunqiao Yin <charles.yin@nokia.com>
-
- 24 May, 2011 - 1 commit
-
-
Jyri Tahtela authored
Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
-
- 27 Apr, 2011 - 1 commit
-
-
Qt by Nokia authored
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12
-