diff options
author | Martin Smith <msmith@trolltech.com> | 2009-05-22 12:59:26 (GMT) |
---|---|---|
committer | Martin Smith <msmith@trolltech.com> | 2009-05-22 12:59:26 (GMT) |
commit | 1ee8715fe0dfa784be987cc0cfb4519b2f20adb0 (patch) | |
tree | 21004fd611096d062eb11f0cb9f87dfbb69d257a /src/sql/drivers/mysql | |
parent | 751e0f1b70cb0c80e88f99e5137329d6f4b76562 (diff) | |
parent | 8b2a16bd7f434a159e34e93dbffc983927a0a143 (diff) | |
download | Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.zip Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.tar.gz Qt-1ee8715fe0dfa784be987cc0cfb4519b2f20adb0.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')
-rw-r--r-- | src/sql/drivers/mysql/qsql_mysql.cpp | 3 |
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; } } } |