{
sqlite3_stmt *stmt = NULL;
int ret = sqlite3_exec(sqlite, "BEGIN;", NULL, NULL, NULL);
- ret = sqlite3_prepare(sqlite, query.c_str(), QUERY_MAX_LEN , &stmt, NULL);
+ ret = sqlite3_prepare(sqlite, query.c_str(), query.size(), &stmt, NULL);
if (ret != SQLITE_OK) {
_ERR("Sqlite error : [%d, %s]", ret, sqlite3_errmsg(sqlite));
dbClose(sqlite);
{
sqlite3_stmt *stmt = NULL;
int ret = sqlite3_exec(sqlite, "BEGIN;", NULL, NULL, NULL);
- ret = sqlite3_prepare(sqlite, query.c_str(), QUERY_MAX_LEN , &stmt, NULL);
+ ret = sqlite3_prepare(sqlite, query.c_str(), query.size(), &stmt, NULL);
if (ret != SQLITE_OK) {
_ERR("Sqlite error : [%d, %s]", ret, sqlite3_errmsg(sqlite));
dbClose(sqlite);
std::vector<std::string> updateDB;
sqlite3_stmt* stmt = NULL;
const char* str = NULL;
- int ret = sqlite3_prepare_v2(sqlite, query.c_str(), strlen(query.c_str()), &stmt, NULL);
+ int ret = sqlite3_prepare_v2(sqlite, query.c_str(), query.size(), &stmt, NULL);
if (ret != SQLITE_OK) {
_ERR("Sqlite error : [%d, %s]", ret, sqlite3_errmsg(sqlite));
dbClose(sqlite);
{
sqlite3_stmt *stmt = NULL;
int ret = sqlite3_exec(sqlite, "BEGIN;", NULL, NULL, NULL);
- ret = sqlite3_prepare(sqlite, query.c_str(), QUERY_MAX_LEN , &stmt, NULL);
+ ret = sqlite3_prepare(sqlite, query.c_str(), query.size(), &stmt, NULL);
if (ret != SQLITE_OK) {
_ERR("Sqlite error : [%d, %s]", ret, sqlite3_errmsg(sqlite));
dbClose(sqlite);