summaryrefslogtreecommitdiffstats
path: root/src/sql
Commit message (Collapse)AuthorAgeFilesLines
* Change copyrights from Nokia to Digia4.5Sergio Ahumada2012-11-2850-900/+900
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I9f5c8a9135271161e2bce50bc413ea01a08c3a76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Fix retrieval of SQL type "TIME" information for PostgreSQLDerick Hawcroft2009-11-051-1/+1
| | | | | | | | PostgreSQL can store/retieve the millisecond part of type "TIME" , so allow it in the API level. Task-number: QTBUG-5251 Reviewed-by: Bill King
* Check success of query.Derick Hawcroft2009-11-051-1/+1
| | | | | | | For example a bogus use of setFilter() might cause a query to fail. Check for this. Reviewed-by: Bill King
* (TDS) Fixes improper formatting of date valuesBill King2009-09-301-1/+3
| | | | Task-number: QT-754
* (TDS) Fixes missing field/table name escaping.Bill King2009-09-302-0/+13
|
* Fixes issue of forward only datasets failing when not set so.Bill King2009-09-171-0/+10
| | | | | | | | | Previously you had to set forward only on non-scrollable datasets explicitly. This queries ODBC, to determine if it's a scrollable dataset, and sets forwardOnly to false if it isn't. Task-number: QT-353 Reviewed-by: Justin McPherson
* Fixes QSqlTableModel: trying to delete the wrong row.Bill King2009-09-151-4/+5
| | | | | | | Uses the primary key from the index in the query, not the resulting location in the modified dataset. Task-number: 222678
* Fixes crash when calling numRows on unknown query type (ibase)Bill King2009-09-151-0/+3
| | | | Reviewed-by: Justin McPherson
* Fixes determination of end of odbc string on deficient driverBill King2009-09-101-6/+6
| | | | | | | Ported this fix backwards from 4.6 to 4.5 Adds some cleanups (using QVarLengthArray), and reverting to the initial and correct calculation (when the driver doesn't deem fit to return SQL_NO_DATA).
* Update license headers again.Jason McDonald2009-09-0850-200/+200
| | | | Reviewed-by: Trust Me
* Update tech preview license header.Jason McDonald2009-08-3150-650/+650
| | | | Reviewed-by: Trust Me
* Fix a SQLITE whitespace in identifiers issue.Derick Hawcroft2009-08-181-8/+13
| | | | | | Whitespaces in identifiers now past autotests Reviewed-by:Bill King
* Update license headers.Jason McDonald2009-08-1150-50/+50
| | | | Reviewed-by: Trust Me
* Fixes formatting of date strings in psql driverBill King2009-08-111-1/+1
| | | | | After the coverity fix, the proper code path executed, which failed to enquote the date field properly, so this fix fixes that issue.
* Missing break when formatting from a time valueBill King2009-08-111-0/+1
| | | | Found by coverity.
* Fixes hack around show queries not allowed to be prepared.Bill King2009-07-301-3/+3
| | | | | | | Mysql queries other than select can't be prepared, otherwise they fail to return the necessary meta-information to enable them to be seen as returning data under certain versions of mysql. This fixes the hack to work correctly until we stop preparing queries automagically.
* Fixed compile on certain Solaris versions.Rohan McGovern2009-07-211-1/+1
| | | | | Every source file must end with a newline, otherwise: "Error: There is extra text on this line."
* Fixes failure when table has null fields to updateBill King2009-07-131-1/+1
| | | | | | | Fixes an issue where too many parameters are bound when updating QSqlTableModel where the stored record has NULLs in it. Reviewed-by: Justin McPherson
* emit dataChanged() signalDerick Hawcroft2009-07-091-0/+1
| | | | Task-number:207874
* Plugged possible memory leak in getPSQLVersion()Stian Sandvik Thomassen2009-07-091-2/+2
| | | | | | | Call PQclear() regardless of the status of the result returned by PQexec(). Reviewed-by: Bill King
* Hopefully fix isnan/isinf for good (for all platforms)Bill King2009-07-091-12/+20
|
* Fixes Dericks inf/nan patch for msvcBill King2009-07-081-0/+13
|
* remove debugDerick Hawcroft2009-07-081-1/+0
|
* Handle special number cases (nan,{+-}infinity) in PostgreSQLDerick Hawcroft2009-07-081-0/+17
| | | | | | | | | When contructing the EXECUTE statement, there is a special case that we need to handle whereby we explicitly put quotes around the special float values before submutting the statement for execution Task-number:233829 Reviewed-by: Bill King
* Handle all PostgreSQL notifications sitting in the queueDerick Hawcroft2009-07-071-4/+4
| | | | | Task-number: 257247 Reviewed-by: trustme
* Fixes ::record for dialect 3 named tables in interbase/firebird.Bill King2009-07-031-2/+2
| | | | | | The comparison was mistakenly only uppercasing one side, so mixed case table names were reporting back as if they weren't found for both QSqlDatabase::record() and QSqlDatabase::primaryIndex()
* Fixes invalid length for numeric fields in oracle.Bill King2009-07-031-1/+1
| | | | | When the precisionpolicy is high, and the field is numeric, it was getting confused as a string field and pulling the wrong length value.
* Tinyint is unsigned, force it to such.Bill King2009-07-021-1/+3
| | | | | Tinyint only supports 0-255, so mark it as unsigned despite sign flag, which have the time is inverted/wrong.
* Get more autotests passing/fixed up.Bill King2009-07-021-2/+5
|
* Don assume QVariant::String data is going to always be unicode in QODBCDerick Hawcroft2009-07-011-1/+1
| | | | | | - as was not the case for the psqlODBC driver Reviewed-by: Bill King
* bug fixDerick Hawcroft2009-06-301-0/+1
| | | | | | | - case for QVariant::Bool in switch statement was missing Task-number: 215511 Reviewed-by: TrustMe
* bug fixDerick Hawcroft2009-06-291-1/+4
| | | | | Task-number: 217003 Reviewed-by: Bill King
* save on a couple of mallocsDerick Hawcroft2009-06-251-1/+1
|
* Fixup ibase.Derick Hawcroft2009-06-251-2/+2
| | | | delete -> delete []
* bug fix for ibase sql driverDerick Hawcroft2009-06-241-16/+36
| | | | | | | | - add checks for failed malloc's - convert some of the obvious malloc'ed stuff to use new/delete Task-number: 200217 Reviewed-by: Bill King
* make the last checkin compile.Bill King2009-06-231-2/+0
|
* Fixes non-unicode strings should be strings, not bytearrays.Bill King2009-06-231-17/+1
| | | | | | Passes all autotests. Task-number: 251739
* task 226042Derick Hawcroft2009-06-221-8/+21
| | | | | | | | Until the PostgreSQL API has this functionality. Use a hack to find out if a transaction has failed or not. This hack is a limited to 8.x versions of PostgreSQL. Bill King
* Update license headers as requested by the marketing department.Jason McDonald2009-06-1650-100/+100
| | | | Reviewed-by: Trust Me
* BT Revert "Fix the behaviour of sql classes regarding quoted identifiers"Bill King2009-06-1515-536/+81
| | | | | This reverts commit bb7bddc47dd0748b45d22180d9e3c8e5209010b3 due to forward binary compatibility issues in a point release.
* Fixes one of the fields of mysql bound params not initialised.Bill King2009-05-211-2/+1
| | | | | | Found by valgrind, value isn't set but is used, fixes this. Reviewed-by: Justin McPherson
* Fixes conditional jump on uninitialised valueBill King2009-05-211-1/+11
| | | | | | As found by valgrind. Also add error reporting that was missing. Reviewed-by: Justin McPherson
* Fixes a memory leak in the interbase sql driver.Bill King2009-05-201-4/+3
| | | | | | As suggested in gitorius merge request 421, solution supplied by Harald. Reviewed-by: Harald Fernengel
* Adds thread initialisation/cleanup code to mysql.Bill King2009-05-201-0/+8
| | | | | | Allows for cleaner multi-thread working for mysql clients. Task-number: 253407
* Fix some typos in the documentation.Frederik Schwarzer2009-05-181-1/+1
| | | | | | Usually, "the the" is not proper English Reviewed-By: Thiago Macieira
* Use newer safer error function if available.Bill King2009-05-141-2/+9
| | | | | | Uses fb_interpret instead of isc_interprete if using firebird. Closes a potential security hole/buffer overrun. Reviewed-by: Justin McPherson
* Fixes a segfault from out of order cleanup of mysql resources.Bill King2009-05-131-50/+73
| | | | | | | If a QSqlQuery survived the lifetime of removal of a mysql db connection (that failed), the cleanup code would cause a segfault because it was using an out of date pointer that was pointing at memory that'd been freed by the removeDatabase() call. Revby: Justin McPherson Task-number: 205701
* The description cited MySQL and the code is for PostgreSQL.Benjamin Poulain2009-05-121-1/+1
| | | | | Task-number: 253427 Reviewed-by: TrustMe
* Fixes QIBASE driver crashes on multiple execution of a prepared queryBill King2009-05-081-3/+3
| | | | Task-number: 246808
* Compiler warnings (Mac/Carbon)Bjoern Erik Nilsen2009-05-071-1/+0
| | | | Reviewed-by: nrc