All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sql_fbapi.h File Reference
#include <stdlib.h>
#include <string.h>
#include <ibase.h>
#include <freeradius-devel/radiusd.h>
#include "rlm_sql.h"
+ Include dependency graph for sql_fbapi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rlm_sql_firebird_conn
 

Macros

#define DEADLOCK_SQL_CODE   -913
 
#define DOWN_SQL_CODE   -902
 
#define IS_ISC_ERROR(status)   ((status[0] == 1) && (status[1] > 0))
 
#define ISC_LONG_FMT   "l"
 
#define ISC_ULONG_FMT   "ul"
 

Typedefs

typedef struct
rlm_sql_firebird_conn 
rlm_sql_firebird_conn_t
 

Functions

int fb_affected_rows (rlm_sql_firebird_conn_t *conn)
 
int fb_close_cursor (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 *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_init_socket (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)
 
void fb_store_row (rlm_sql_firebird_conn_t *conn)
 

Data Structure Documentation

struct rlm_sql_firebird_conn

Definition at line 48 of file sql_fbapi.h.

Data Fields
isc_db_handle dbh
char * dpb
int dpb_len
char * error
rlm_sql_row_t row
int row_fcount
int * row_sizes
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

Macro Definition Documentation

#define DEADLOCK_SQL_CODE   -913

Definition at line 37 of file sql_fbapi.h.

#define DOWN_SQL_CODE   -902

Definition at line 38 of file sql_fbapi.h.

#define IS_ISC_ERROR (   status)    ((status[0] == 1) && (status[1] > 0))

Definition at line 35 of file sql_fbapi.h.

#define ISC_LONG_FMT   "l"

Definition at line 44 of file sql_fbapi.h.

#define ISC_ULONG_FMT   "ul"

Definition at line 45 of file sql_fbapi.h.

Typedef Documentation

Function Documentation

int fb_affected_rows ( rlm_sql_firebird_conn_t conn)

Definition at line 503 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_close_cursor ( rlm_sql_firebird_conn_t conn)

Definition at line 534 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_commit ( rlm_sql_firebird_conn_t conn)

Definition at line 563 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_connect ( rlm_sql_firebird_conn_t conn,
rlm_sql_config_t config 
)

Definition at line 350 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_disconnect ( rlm_sql_firebird_conn_t conn)
int fb_error ( rlm_sql_firebird_conn_t conn)

Definition at line 83 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_fetch ( rlm_sql_firebird_conn_t conn)

Definition at line 404 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_free_result ( rlm_sql_firebird_conn_t conn)
void fb_free_sqlda ( XSQLDA *  sqlda)

Definition at line 129 of file sql_fbapi.c.

+ Here is the caller graph for this function:

void fb_free_statement ( rlm_sql_firebird_conn_t conn)

Definition at line 540 of file sql_fbapi.c.

+ Here is the caller graph for this function:

int fb_init_socket ( rlm_sql_firebird_conn_t conn)

Definition at line 326 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_rollback ( rlm_sql_firebird_conn_t conn)

Definition at line 547 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fb_sql_query ( rlm_sql_firebird_conn_t conn,
char const *  query 
)

Definition at line 484 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fb_store_row ( rlm_sql_firebird_conn_t conn)

Definition at line 151 of file sql_fbapi.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: