22 RCSIDH(sql_fbapi_h,
"$Id: 275b858f8091266b7f9c9c4649a182af2e511ae3 $")
28 #include <freeradius-devel/server/base.h>
31 #define IS_ISC_ERROR(status) ((status[0] == 1) && (status[1] > 0))
33 #define DEADLOCK_SQL_CODE -913
34 #define DOWN_SQL_CODE -902
35 #define DUPLICATE_KEY_SQL_CODE -803
37 #if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
38 #define ISC_LONG_FMT "d"
39 #define ISC_ULONG_FMT "u"
41 #define ISC_LONG_FMT "l"
42 #define ISC_ULONG_FMT "ul"
50 ISC_STATUS status[20];
static const conf_parser_t config[]
Prototypes and functions for the SQL module.
sql_rcode_t
Action to take at end of an SQL query.
int fb_sql_query(rlm_sql_firebird_conn_t *conn, char const *query)
int fb_connect(rlm_sql_firebird_conn_t *conn, rlm_sql_config_t const *config)
int fb_rollback(rlm_sql_firebird_conn_t *conn)
int fb_error(rlm_sql_firebird_conn_t *conn)
int fb_fetch(rlm_sql_firebird_conn_t *conn)
void fb_free_sqlda(XSQLDA *sqlda)
sql_rcode_t fb_store_row(rlm_sql_firebird_conn_t *conn)
int fb_disconnect(rlm_sql_firebird_conn_t *conn)
int fb_commit(rlm_sql_firebird_conn_t *conn)
int fb_affected_rows(rlm_sql_firebird_conn_t *conn)
int fb_free_result(rlm_sql_firebird_conn_t *conn)
void fb_free_statement(rlm_sql_firebird_conn_t *conn)