Lines Matching defs:sql
79 static int dbd_sqlite_select(apr_pool_t * pool, apr_dbd_t * sql,
88 if (sql->trans && sql->trans->errnum) {
89 return sql->trans->errnum;
92 FREE_ERROR_MSG(sql);
94 ret = sqlite_get_table(sql->conn, query, &result, &tuples, &fields,
95 &sql->errmsg);
115 if (TXN_NOTICE_ERRORS(sql->trans)) {
116 sql->trans->errnum = ret;
271 static const char *dbd_sqlite_error(apr_dbd_t * sql, int n)
273 return sql->errmsg;
276 static int dbd_sqlite_query(apr_dbd_t * sql, int *nrows, const char *query)
283 if (sql->trans && sql->trans->errnum) {
284 return sql->trans->errnum;
287 FREE_ERROR_MSG(sql);
290 sqlite_get_table(sql->conn, query, &result, &tuples, &fields,
291 &sql->errmsg);
293 *nrows = sqlite_changes(sql->conn);
301 if (TXN_NOTICE_ERRORS(sql->trans)) {
302 sql->trans->errnum = ret;
315 apr_dbd_t * sql)
322 static int dbd_sqlite_prepare(apr_pool_t * pool, apr_dbd_t * sql,
330 static int dbd_sqlite_pquery(apr_pool_t * pool, apr_dbd_t * sql,
337 static int dbd_sqlite_pvquery(apr_pool_t * pool, apr_dbd_t * sql,
344 static int dbd_sqlite_pselect(apr_pool_t * pool, apr_dbd_t * sql,
352 static int dbd_sqlite_pvselect(apr_pool_t * pool, apr_dbd_t * sql,
360 static int dbd_sqlite_pbquery(apr_pool_t * pool, apr_dbd_t * sql,
367 static int dbd_sqlite_pvbquery(apr_pool_t * pool, apr_dbd_t * sql,
374 static int dbd_sqlite_pbselect(apr_pool_t * pool, apr_dbd_t * sql,
382 static int dbd_sqlite_pvbselect(apr_pool_t * pool, apr_dbd_t * sql,
458 apr_dbd_t *sql;
489 sql = apr_pcalloc(pool, sizeof(*sql));
490 sql->conn = conn;
492 return sql;