path: root/src/sql
diff options
authorMark Brand <>2015-11-21 01:08:16 +0100
committerMark Brand <>2015-11-23 16:26:03 +0000
commitd19b6c646e073dbe31dbf691eab324cdae01d610 (patch)
tree5a6b3b50ab4a94e430ac71d53e56d51901ac1bf3 /src/sql
parentf906e1471ac096c80250c0523a01e4bd58cded7a (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 <>
Diffstat (limited to 'src/sql')
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();