The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <stdlib.h>
#include <string.h>
#include <ibase.h>
#include <freeradius-devel/server/base.h>
#include "rlm_sql.h"
Go to the source code of this file.
Data Structures | |
struct | rlm_sql_firebird_conn_t |
Macros | |
#define | DEADLOCK_SQL_CODE -913 |
#define | DOWN_SQL_CODE -902 |
#define | DUPLICATE_KEY_SQL_CODE -803 |
#define | IS_ISC_ERROR(status) ((status[0] == 1) && (status[1] > 0)) |
#define | ISC_LONG_FMT "l" |
#define | ISC_ULONG_FMT "ul" |
Functions | |
int | fb_affected_rows (rlm_sql_firebird_conn_t *conn) |
int | fb_commit (rlm_sql_firebird_conn_t *conn) |
int | fb_connect (rlm_sql_firebird_conn_t *conn, rlm_sql_config_t const *config) |
int | fb_disconnect (rlm_sql_firebird_conn_t *conn) |
int | fb_error (rlm_sql_firebird_conn_t *conn) |
int | fb_fetch (rlm_sql_firebird_conn_t *conn) |
int | fb_free_result (rlm_sql_firebird_conn_t *conn) |
void | fb_free_sqlda (XSQLDA *sqlda) |
void | fb_free_statement (rlm_sql_firebird_conn_t *conn) |
int | fb_rollback (rlm_sql_firebird_conn_t *conn) |
int | fb_sql_query (rlm_sql_firebird_conn_t *conn, char const *query) |
sql_rcode_t | fb_store_row (rlm_sql_firebird_conn_t *conn) |
struct rlm_sql_firebird_conn_t |
Definition at line 45 of file sql_fbapi.h.
Data Fields | ||
---|---|---|
isc_db_handle | dbh | |
char * | dpb | |
int | dpb_len | |
char * | error | |
rlm_sql_row_t | row | |
ISC_LONG | sql_code | |
int | sql_dialect | |
XSQLDA * | sqlda_out | |
int | statement_type | |
ISC_STATUS | status[20] | Magic interbase status code array (holds multiple error codes used to construct more detailed error messages. |
isc_stmt_handle | stmt | |
char * | tpb | |
int | tpb_len | |
isc_tr_handle | trh |
#define DEADLOCK_SQL_CODE -913 |
Definition at line 33 of file sql_fbapi.h.
#define DOWN_SQL_CODE -902 |
Definition at line 34 of file sql_fbapi.h.
#define DUPLICATE_KEY_SQL_CODE -803 |
Definition at line 35 of file sql_fbapi.h.
#define IS_ISC_ERROR | ( | status | ) | ((status[0] == 1) && (status[1] > 0)) |
Definition at line 31 of file sql_fbapi.h.
#define ISC_LONG_FMT "l" |
Definition at line 41 of file sql_fbapi.h.
#define ISC_ULONG_FMT "ul" |
Definition at line 42 of file sql_fbapi.h.
int fb_affected_rows | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 413 of file sql_fbapi.c.
int fb_commit | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 456 of file sql_fbapi.c.
int fb_connect | ( | rlm_sql_firebird_conn_t * | conn, |
rlm_sql_config_t const * | config | ||
) |
Definition at line 271 of file sql_fbapi.c.
int fb_disconnect | ( | rlm_sql_firebird_conn_t * | conn | ) |
int fb_error | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 63 of file sql_fbapi.c.
int fb_fetch | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 331 of file sql_fbapi.c.
int fb_free_result | ( | rlm_sql_firebird_conn_t * | conn | ) |
void fb_free_sqlda | ( | XSQLDA * | sqlda | ) |
void fb_free_statement | ( | rlm_sql_firebird_conn_t * | conn | ) |
int fb_rollback | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 447 of file sql_fbapi.c.
int fb_sql_query | ( | rlm_sql_firebird_conn_t * | conn, |
char const * | query | ||
) |
Definition at line 396 of file sql_fbapi.c.
sql_rcode_t fb_store_row | ( | rlm_sql_firebird_conn_t * | conn | ) |
Definition at line 133 of file sql_fbapi.c.