diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-06-28 15:51:39 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-24 17:41:38 +0200 |
commit | 1411a6f1acfcbea3f31ac461c27cd3e1be87ee1c (patch) | |
tree | b6743056e0060bcde638168b63033a153388193a /src/sql/drivers/db2 | |
parent | c35b55f076baf8cfd62549e8e386bfd95853de69 (diff) |
Remove use of QFlag in the SQL drivers
It's not clear why they were added, but they aren't needed anymore.
Change-Id: I1d919deefdbd6a71fa255eeac1a8543c33ba390d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/sql/drivers/db2')
-rw-r--r-- | src/sql/drivers/db2/qsql_db2.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sql/drivers/db2/qsql_db2.cpp b/src/sql/drivers/db2/qsql_db2.cpp index e58710e0f5..d799060633 100644 --- a/src/sql/drivers/db2/qsql_db2.cpp +++ b/src/sql/drivers/db2/qsql_db2.cpp @@ -633,7 +633,7 @@ bool QDB2Result::exec() dt->day = qdt.day(); r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_DATE, SQL_DATE, 0, @@ -653,7 +653,7 @@ bool QDB2Result::exec() dt->second = qdt.second(); r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_TIME, SQL_TIME, 0, @@ -677,7 +677,7 @@ bool QDB2Result::exec() dt->fraction = qdt.time().msec() * 1000000; r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_TIMESTAMP, SQL_TIMESTAMP, 0, @@ -690,7 +690,7 @@ bool QDB2Result::exec() case QVariant::Int: r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_SLONG, SQL_INTEGER, 0, @@ -702,7 +702,7 @@ bool QDB2Result::exec() case QVariant::Double: r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_DOUBLE, SQL_DOUBLE, 0, @@ -717,7 +717,7 @@ bool QDB2Result::exec() *ind = len; r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_BINARY, SQL_LONGVARBINARY, len, @@ -735,7 +735,7 @@ bool QDB2Result::exec() QByteArray ba((char*)str.utf16(), str.capacity() * sizeof(QChar)); r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_WCHAR, SQL_WVARCHAR, str.length(), @@ -749,7 +749,7 @@ bool QDB2Result::exec() int len = str.length(); r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_WCHAR, SQL_WVARCHAR, len, @@ -767,7 +767,7 @@ bool QDB2Result::exec() *ind = ba.length(); r = SQLBindParameter(d->hStmt, i + 1, - qParamType[(QFlag)(bindValueType(i)) & 3], + qParamType[bindValueType(i) & 3], SQL_C_CHAR, SQL_VARCHAR, len, |