summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/mysql/qsql_mysql.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-25 11:47:12 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-05-25 11:47:12 (GMT)
commitcf2e6ffa054971a26b466eeb5170adfc247ba80a (patch)
treefc25d7806eb3cb3c8ec5330980f9cb1f664a1445 /src/sql/drivers/mysql/qsql_mysql.cpp
parent095fe67c4a669f038ea7c14613efe5cb9453fa74 (diff)
parent58253fafc6d3c0a535833e674d8930a46138c25f (diff)
downloadQt-cf2e6ffa054971a26b466eeb5170adfc247ba80a.zip
Qt-cf2e6ffa054971a26b466eeb5170adfc247ba80a.tar.gz
Qt-cf2e6ffa054971a26b466eeb5170adfc247ba80a.tar.bz2
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
-rw-r--r--src/sql/drivers/mysql/qsql_mysql.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sql/drivers/mysql/qsql_mysql.cpp b/src/sql/drivers/mysql/qsql_mysql.cpp
index 51fc306..53645c9 100644
--- a/src/sql/drivers/mysql/qsql_mysql.cpp
+++ b/src/sql/drivers/mysql/qsql_mysql.cpp
@@ -927,6 +927,7 @@ bool QMYSQLResult::exec()
nullVector[i] = static_cast<my_bool>(val.isNull());
currBind->is_null = &nullVector[i];
currBind->length = 0;
+ currBind->is_unsigned = 0;
switch (val.type()) {
case QVariant::ByteArray:
@@ -973,7 +974,6 @@ bool QMYSQLResult::exec()
currBind->buffer_type = MYSQL_TYPE_DOUBLE;
currBind->buffer = data;
currBind->buffer_length = sizeof(double);
- currBind->is_unsigned = 0;
break;
case QVariant::LongLong:
case QVariant::ULongLong:
@@ -989,7 +989,6 @@ bool QMYSQLResult::exec()
currBind->buffer_type = MYSQL_TYPE_STRING;
currBind->buffer = const_cast<char *>(ba.constData());
currBind->buffer_length = ba.length();
- currBind->is_unsigned = 0;
break; }
}
}