Lines Matching defs:stmt
75 sqlite3_stmt *stmt;
84 switch (sqlite3_prepare_v2(db, sql, -1, &stmt, NULL))
95 ((result = sqlite3_step(stmt)) == SQLITE_BUSY || result == SQLITE_LOCKED) && counter < 2;
110 if (sqlite3_column_type(stmt, 0) == SQLITE_NULL)
115 ret = sqlite3_column_int(stmt, 0);
124 sqlite3_finalize(stmt);
135 sqlite3_stmt *stmt;
149 switch (sqlite3_prepare_v2(db, sql, -1, &stmt, NULL))
161 ((result = sqlite3_step(stmt)) == SQLITE_BUSY || result == SQLITE_LOCKED) && counter < 2;
178 if (sqlite3_column_type(stmt, 0) == SQLITE_NULL)
184 len = sqlite3_column_bytes(stmt, 0);
191 strncpy(str, (char *)sqlite3_column_text(stmt, 0), len + 1);
200 sqlite3_finalize(stmt);