Fix warning in qsql_odbc.cpp when building with MSVC2017
qsql_odbc.cpp(1589): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data Change-Id: Ib36fda3e3b21bdbc8b343ae5136542dfcf3c1065 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
cef009b1e4
commit
b888cc6fbc
@ -1586,7 +1586,7 @@ bool QODBCResult::exec()
|
|||||||
|
|
||||||
if (bindValueType(i) & QSql::Out) {
|
if (bindValueType(i) & QSql::Out) {
|
||||||
const QVarLengthArray<SQLTCHAR> a(toSQLTCHAR(str));
|
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,
|
r = SQLBindParameter(d->hStmt,
|
||||||
i + 1,
|
i + 1,
|
||||||
qParamType[bindValueType(i) & QSql::InOut],
|
qParamType[bindValueType(i) & QSql::InOut],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user