Back to index

php5  5.3.10
Classes | Defines | Typedefs | Enumerations | Functions | Variables
php_pdo_firebird_int.h File Reference
#include <ibase.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pdo_firebird_db_handle
struct  pdo_firebird_stmt

Defines

#define PDO_FB_SQLDA_VERSION   1
#define PDO_FB_DIALECT   3
#define PDO_FB_DEF_DATE_FMT   "%Y-%m-%d"
#define PDO_FB_DEF_TIME_FMT   "%H:%M:%S"
#define PDO_FB_DEF_TIMESTAMP_FMT   PDO_FB_DEF_DATE_FMT " " PDO_FB_DEF_TIME_FMT
#define SHORT_MAX   (1 << (8*sizeof(short)-1))
#define LL_MASK   "ll"
#define LL_LIT(lit)   lit ## LL
#define const_cast(s)   ((char*)(s))
#define min(a, b)   ((a)<(b)?(a):(b))

Typedefs

typedef void(* info_func_t )(char *)

Enumerations

enum  { PDO_FB_ATTR_DATE_FORMAT = PDO_ATTR_DRIVER_SPECIFIC, PDO_FB_ATTR_TIME_FORMAT, PDO_FB_ATTR_TIMESTAMP_FORMAT }

Functions

void _firebird_error (pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long line TSRMLS_DC)

Variables

pdo_driver_t pdo_firebird_driver

Class Documentation

struct pdo_firebird_db_handle

Definition at line 66 of file php_pdo_firebird_int.h.

Class Members
unsigned _reserved:31
char * date_format
isc_db_handle db
unsigned fetch_table_names:1
ISC_STATUS isc_status
char const * last_app_error
char * time_format
char * timestamp_format
isc_tr_handle tr
struct pdo_firebird_stmt

Definition at line 93 of file php_pdo_firebird_int.h.

Collaboration diagram for pdo_firebird_stmt:
Class Members
unsigned _reserved:22
unsigned cursor_open:1
unsigned exhausted:1
char ** fetch_buf
pdo_firebird_db_handle * H
XSQLDA * in_sqlda
char name
HashTable * named_params
XSQLDA out_sqlda
char statement_type:8
isc_stmt_handle stmt

Define Documentation

#define const_cast (   s)    ((char*)(s))

Definition at line 54 of file php_pdo_firebird_int.h.

#define LL_LIT (   lit)    lit ## LL

Definition at line 49 of file php_pdo_firebird_int.h.

#define LL_MASK   "ll"

Definition at line 48 of file php_pdo_firebird_int.h.

#define min (   a,
 
)    ((a)<(b)?(a):(b))

Definition at line 63 of file php_pdo_firebird_int.h.

#define PDO_FB_DEF_DATE_FMT   "%Y-%m-%d"

Definition at line 34 of file php_pdo_firebird_int.h.

#define PDO_FB_DEF_TIME_FMT   "%H:%M:%S"

Definition at line 35 of file php_pdo_firebird_int.h.

Definition at line 36 of file php_pdo_firebird_int.h.

#define PDO_FB_DIALECT   3

Definition at line 32 of file php_pdo_firebird_int.h.

#define PDO_FB_SQLDA_VERSION   1

Definition at line 29 of file php_pdo_firebird_int.h.

#define SHORT_MAX   (1 << (8*sizeof(short)-1))

Definition at line 38 of file php_pdo_firebird_int.h.


Typedef Documentation

typedef void(* info_func_t)(char *)

Definition at line 59 of file php_pdo_firebird_int.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
PDO_FB_ATTR_DATE_FORMAT 
PDO_FB_ATTR_TIME_FORMAT 
PDO_FB_ATTR_TIMESTAMP_FORMAT 

Definition at line 135 of file php_pdo_firebird_int.h.


Function Documentation

void _firebird_error ( pdo_dbh_t *  dbh,
pdo_stmt_t *  stmt,
char const *  file,
long line  TSRMLS_DC 
)

Definition at line 42 of file firebird_driver.c.

{
#if 0
       pdo_firebird_db_handle *H = stmt ? ((pdo_firebird_stmt *)stmt->driver_data)->H 
              : (pdo_firebird_db_handle *)dbh->driver_data;
#endif
       pdo_error_type *const error_code = stmt ? &stmt->error_code : &dbh->error_code;
       
#if 0
       switch (isc_sqlcode(H->isc_status)) {

              case 0:
                     *error_code = PDO_ERR_NONE;
                     break;
              default:
                     *error_code = PDO_ERR_CANT_MAP;
                     break;
              case -104:
                     *error_code = PDO_ERR_SYNTAX;
                     break;
              case -530:
              case -803:
                     *error_code = PDO_ERR_CONSTRAINT;
                     break;
              case -204:
              case -205:
              case -206:
              case -829:
                     *error_code = PDO_ERR_NOT_FOUND;
                     break;

                     *error_code = PDO_ERR_ALREADY_EXISTS;
                     break;
              
                     *error_code = PDO_ERR_NOT_IMPLEMENTED;
                     break;
              case -313:
              case -804:
                     *error_code = PDO_ERR_MISMATCH;
                     break;
              case -303:
              case -314:    
              case -413:
                     *error_code = PDO_ERR_TRUNCATED;
                     break;
                     
                     *error_code = PDO_ERR_DISCONNECTED;
                     break;
       }
#else
       strcpy(*error_code, "HY000");
#endif
}

Here is the call graph for this function:


Variable Documentation

Definition at line 715 of file firebird_driver.c.