diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-03-19 14:35:27 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-03-20 11:14:40 +0100 |
commit | b888cc6fbc09903680a62d66ff556f949a139751 (patch) | |
tree | 0f51cbd9f8cac059b2abf780252122641e74a7a0 /src | |
parent | cef009b1e4d3a3f8108a9f17e8c01e7140a587b4 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/sqldrivers/odbc/qsql_odbc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp index d58aea9a9d..8df61ddaa5 100644 --- a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp +++ b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp @@ -1586,7 +1586,7 @@ bool QODBCResult::exec() if (bindValueType(i) & QSql::Out) { const QVarLengthArray<SQLTCHAR> a(toSQLTCHAR(str)); - ba = QByteArray((const char *)a.constData(), a.size() * sizeof(SQLTCHAR)); + ba = QByteArray((const char *)a.constData(), int(a.size() * sizeof(SQLTCHAR))); r = SQLBindParameter(d->hStmt, i + 1, qParamType[bindValueType(i) & QSql::InOut], |