2 * sql_fbapi.h Part of Firebird rlm_sql driver
4 * Copyright 2006 Vitaly Bodzhgua <vitaly@easteara.net>
17 #define IS_ISC_ERROR(status) (status[0] == 1 && status[1])
19 #define DEADLOCK_TRYS 2
20 #define DEADLOCK_SQL_CODE -913
22 typedef struct rlm_sql_firebird_sock {
26 ISC_STATUS status[20];
41 } rlm_sql_firebird_sock;
44 int fb_free_result(rlm_sql_firebird_sock *sock);
45 int fb_lasterror(rlm_sql_firebird_sock *);
46 int fb_init_socket(rlm_sql_firebird_sock *sock);
47 int fb_connect(rlm_sql_firebird_sock * sock,SQL_CONFIG *config);
48 int fb_sql_query(rlm_sql_firebird_sock * sock,char *sqlstr);
49 int fb_fetch(rlm_sql_firebird_sock * sock);
50 void fb_destroy_socket(rlm_sql_firebird_sock *);
51 void fb_store_row(rlm_sql_firebird_sock *sock);