diff options
author | Bill King <bill.king@nokia.com> | 2009-04-08 04:55:00 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-04-08 04:55:00 (GMT) |
commit | 25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d (patch) | |
tree | 15517f111a3c6c356e6792b07f803007eeb381d7 /src/sql/drivers | |
parent | 06c19716bd9c5974743775de7aa702271b3ab435 (diff) | |
download | Qt-25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d.zip Qt-25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d.tar.gz Qt-25b8d04ad9f2d5b89e81f56212b4dbfaeff1304d.tar.bz2 |
Missed these changes from the last commit.
Last of the changes to include behaviour from QPtrVector
Diffstat (limited to 'src/sql/drivers')
-rw-r--r-- | src/sql/drivers/db2/qsql_db2.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sql/drivers/db2/qsql_db2.cpp b/src/sql/drivers/db2/qsql_db2.cpp index a6be435..5d221b8 100644 --- a/src/sql/drivers/db2/qsql_db2.cpp +++ b/src/sql/drivers/db2/qsql_db2.cpp @@ -49,6 +49,7 @@ #include <qstringlist.h> #include <qvarlengtharray.h> #include <qvector.h> +#include <QDebug> #ifndef UNICODE #define UNICODE @@ -578,7 +579,8 @@ bool QDB2Result::reset (const QString& query) } else { setSelect(false); } - d->valueCache.resize(count, NULL); + d->valueCache.resize(count); + d->valueCache.fill(NULL); setActive(true); return true; } @@ -821,7 +823,8 @@ bool QDB2Result::exec() setSelect(false); } setActive(true); - d->valueCache.resize(count, NULL); + d->valueCache.resize(count); + d->valueCache.fill(NULL); //get out parameters if (!hasOutValues()) @@ -1130,7 +1133,8 @@ bool QDB2Result::nextResult() for (int i = 0; i < fieldCount; ++i) d->recInf.append(qMakeFieldInfo(d, i)); - d->valueCache.resize(fieldCount, NULL); + d->valueCache.resize(fieldCount); + d->valueCache.fill(NULL); setActive(true); return true; |