Lines Matching refs:stmt

197 	     sqlite3_stmt **stmt, const char *str)  in prepare_stmt()  argument
201 ret = sqlite3_prepare_v2(db, str, -1, stmt, NULL); in prepare_stmt()
255 sqlite3_stmt *stmt; in get_def_name() local
263 ret = prepare_stmt(context, db, &stmt, "SELECT defaultcache FROM master"); in get_def_name()
269 ret = sqlite3_step(stmt); in get_def_name()
273 if (sqlite3_column_type(stmt, 0) != SQLITE_TEXT) in get_def_name()
276 name = (const char *)sqlite3_column_text(stmt, 0); in get_def_name()
284 sqlite3_finalize(stmt); in get_def_name()
288 sqlite3_finalize(stmt); in get_def_name()
455 sqlite3_stmt *stmt, in bind_principal() argument
466 ret = sqlite3_bind_text(stmt, col, str, -1, free_krb5); in bind_principal()
868 sqlite3_stmt *stmt; member
952 ret = prepare_stmt(context, s->db, &ctx->stmt, str); in scc_get_first()
966 sqlite3_finalize(ctx->stmt); in scc_get_first()
992 ret = sqlite3_step(ctx->stmt); in scc_get_next()
1003 oid = sqlite3_column_int64(ctx->stmt, 0); in scc_get_next()
1039 sqlite3_finalize(ctx->stmt); in scc_end_get()
1058 sqlite3_stmt *stmt; in scc_remove_cred() local
1067 ret = prepare_stmt(context, s->db, &stmt, in scc_remove_cred()
1073 sqlite3_bind_int(stmt, 1, s->cid); in scc_remove_cred()
1079 ret = sqlite3_step(stmt); in scc_remove_cred()
1091 if (sqlite3_column_type(stmt, 0) != SQLITE_BLOB) { in scc_remove_cred()
1100 data = sqlite3_column_blob(stmt, 0); in scc_remove_cred()
1101 len = sqlite3_column_bytes(stmt, 0); in scc_remove_cred()
1110 credid = sqlite3_column_int64(stmt, 1); in scc_remove_cred()
1116 sqlite3_finalize(stmt); in scc_remove_cred()
1119 ret = prepare_stmt(context, s->db, &stmt, in scc_remove_cred()
1123 sqlite3_bind_int(stmt, 1, credid); in scc_remove_cred()
1126 ret = sqlite3_step(stmt); in scc_remove_cred()
1128 sqlite3_finalize(stmt); in scc_remove_cred()
1151 sqlite3_stmt *stmt; member
1230 ret = prepare_stmt(context, ctx->db, &ctx->stmt, str); in scc_get_cache_first()
1255 ret = sqlite3_step(ctx->stmt); in scc_get_cache_next()
1266 if (sqlite3_column_type(ctx->stmt, 0) != SQLITE_TEXT) in scc_get_cache_next()
1269 name = (const char *)sqlite3_column_text(ctx->stmt, 0); in scc_get_cache_next()
1286 sqlite3_finalize(ctx->stmt); in scc_end_cache_get()