From d19b6c646e073dbe31dbf691eab324cdae01d610 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Sat, 21 Nov 2015 01:08:16 +0100 Subject: 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 --- src/sql/drivers/oci/qsql_oci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sql') 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(); -- cgit v1.2.3