comparison Core/SQLite/Statement.cpp @ 3585:113a9643e8bb

Suppressed a few warnings when building with emscripten (clang) + numeric truncation warnings
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 02 Dec 2019 10:59:40 +0100
parents fa5ad4368fe3
children
comparison
equal deleted inserted replaced
3584:75268c1ea309 3585:113a9643e8bb
216 void Statement::BindString(int col, const std::string& val) 216 void Statement::BindString(int col, const std::string& val)
217 { 217 {
218 CheckOk(sqlite3_bind_text(GetStatement(), 218 CheckOk(sqlite3_bind_text(GetStatement(),
219 col + 1, 219 col + 1,
220 val.data(), 220 val.data(),
221 val.size(), 221 static_cast<int>(val.size()),
222 SQLITE_TRANSIENT), 222 SQLITE_TRANSIENT),
223 ErrorCode_BadParameterType); 223 ErrorCode_BadParameterType);
224 } 224 }
225 225
226 /*void Statement::BindString16(int col, const string16& value) 226 /*void Statement::BindString16(int col, const string16& value)