diff options
author | Mark Brand <mabrand@mabrand.nl> | 2015-11-21 01:08:16 +0100 |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2015-11-23 16:26:03 +0000 |
commit | d19b6c646e073dbe31dbf691eab324cdae01d610 (patch) | |
tree | 5a6b3b50ab4a94e430ac71d53e56d51901ac1bf3 /src/sql | |
parent | f906e1471ac096c80250c0523a01e4bd58cded7a (diff) |
qsql_oci: fix option types
These are signed values. Notice the initialization to -1, which
apparently never worked. The unsigned types previously used may
be due to confusion with other arguments of OCIAttrSet():
sword OCIAttrSet ( dvoid *trgthndlp,
ub4 trghndltyp,
dvoid *attributep,
ub4 size,
ub4 attrtype,
OCIError *errhp );
Examples found in web searches also use signed int.
Change-Id: I8db273a554fa0ef454a8dfce5d83983f79cf6cb9
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/drivers/oci/qsql_oci.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sql/drivers/oci/qsql_oci.cpp b/src/sql/drivers/oci/qsql_oci.cpp index f0c0b224bd..6042eb5c09 100644 --- a/src/sql/drivers/oci/qsql_oci.cpp +++ b/src/sql/drivers/oci/qsql_oci.cpp @@ -497,8 +497,8 @@ public: OCIError *err; bool transaction; int serverVersion; - ub4 prefetchRows; - ub2 prefetchMem; + int prefetchRows; + int prefetchMem; QString user; void allocErrorHandle(); |