php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
firebird_driver.c File Reference
#include "php.h"
#include "zend_exceptions.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/pdo/php_pdo.h"
#include "ext/pdo/php_pdo_driver.h"
#include "php_pdo_firebird.h"
#include "php_pdo_firebird_int.h"
#include "pdo_firebird_utils.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define INFO_BUF_LEN   512
 

Enumerations

enum  FbTokenType {
  ttNone , ttWhite , ttComment , ttBrokenComment ,
  ttString , ttParamMark , ttIdent , ttOther
}
 

Functions

void php_firebird_set_error (pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *state, const size_t state_len, const char *msg, const size_t msg_len)
 
bool php_firebird_commit_transaction (pdo_dbh_t *dbh, bool retain)
 

Variables

const char CHR_LETTER = 1
 
const char CHR_DIGIT = 2
 
const char CHR_IDENT = 4
 
const char CHR_QUOTE = 8
 
const char CHR_WHITE = 16
 
const char CHR_HEX = 32
 
const char CHR_INTRODUCER = 64
 
const pdo_driver_t pdo_firebird_driver
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 22 of file firebird_driver.c.

◆ INFO_BUF_LEN

#define INFO_BUF_LEN   512

Definition at line 1200 of file firebird_driver.c.

Enumeration Type Documentation

◆ FbTokenType

Enumerator
ttNone 
ttWhite 
ttComment 
ttBrokenComment 
ttString 
ttParamMark 
ttIdent 
ttOther 

Definition at line 185 of file firebird_driver.c.

Function Documentation

◆ php_firebird_commit_transaction()

bool php_firebird_commit_transaction ( pdo_dbh_t * dbh,
bool retain )

retaining keeps the transaction open without closing it.

firebird needs to always have a transaction open to emulate autocommit mode, and in autocommit mode it keeps the transaction open.

Same as close and then begin again, but use retain to save overhead.

Definition at line 913 of file firebird_driver.c.

◆ php_firebird_set_error()

void php_firebird_set_error ( pdo_dbh_t * dbh,
pdo_stmt_t * stmt,
const char * state,
const size_t state_len,
const char * msg,
const size_t msg_len )

Definition at line 524 of file firebird_driver.c.

Variable Documentation

◆ CHR_DIGIT

const char CHR_DIGIT = 2

Definition at line 40 of file firebird_driver.c.

◆ CHR_HEX

const char CHR_HEX = 32

Definition at line 44 of file firebird_driver.c.

◆ CHR_IDENT

const char CHR_IDENT = 4

Definition at line 41 of file firebird_driver.c.

◆ CHR_INTRODUCER

const char CHR_INTRODUCER = 64

Definition at line 45 of file firebird_driver.c.

◆ CHR_LETTER

const char CHR_LETTER = 1

Definition at line 39 of file firebird_driver.c.

◆ CHR_QUOTE

const char CHR_QUOTE = 8

Definition at line 42 of file firebird_driver.c.

◆ CHR_WHITE

const char CHR_WHITE = 16

Definition at line 43 of file firebird_driver.c.

◆ pdo_firebird_driver

const pdo_driver_t pdo_firebird_driver
Initial value:
= {
PDO_DRIVER_HEADER(firebird),
pdo_firebird_handle_factory
}
#define PDO_DRIVER_HEADER(name)

Definition at line 1451 of file firebird_driver.c.