Fix psql_* stub signatures

Correct all psql function signatures to match headers
This commit is contained in:
Levi Neely 2026-03-10 17:02:15 +01:00
parent 236c1d20a0
commit cddc599397
1 changed files with 22 additions and 21 deletions

View File

@ -45,57 +45,58 @@ void psock_close(psock_t *sock) {
} }
/* psql stubs */ /* psql stubs */
long long psql_cellint(void *res, int row, int col) { int64_t psql_cellint(const char *sql, int64_t dflt) {
(void)res; (void)sql;
(void)row; return dflt;
(void)col;
return 0;
} }
void *psql_prepare(const char *sql) { psync_sql_res *psql_prepare(const char *sql) {
(void)sql; (void)sql;
return NULL; return NULL;
} }
void psql_bind_uint(void *stmt, int idx, unsigned long val) { void psql_bind_uint(psync_sql_res *res, int n, uint64_t val) {
(void)stmt; (void)res;
(void)idx; (void)n;
(void)val; (void)val;
} }
void psql_run_free(void *stmt) { int psql_run_free(psync_sql_res *res) {
(void)stmt; (void)res;
return -1;
} }
void *psql_query(const char *sql) { psync_sql_res *psql_query(const char *sql) {
(void)sql; (void)sql;
return NULL; return NULL;
} }
void **psql_fetch(void *res) { psync_variant_row psql_fetch(psync_sql_res *res) {
(void)res; (void)res;
return NULL; return NULL;
} }
void psql_free(void *res) { void psql_free(psync_sql_res *res) {
(void)res; (void)res;
} }
const char *psql_expect_str(void *res, int row, int col) { const char *psql_expect_str(const char *name, const char *sql, uint32_t row, const psync_variant *params) {
(void)res; (void)name;
(void)sql;
(void)row; (void)row;
(void)col; (void)params;
return ""; return "";
} }
long long psql_expect_num(void *res, int row, int col) { uint64_t psql_expect_num(const char *name, const char *sql, uint32_t row, const psync_variant *params) {
(void)res; (void)name;
(void)sql;
(void)row; (void)row;
(void)col; (void)params;
return 0; return 0;
} }
void psql_try_free(void *res) { void psql_try_free(psync_sql_res *res) {
(void)res; (void)res;
} }