php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_pdo_dblib_int.h File Reference
#include <sybfront.h>
#include <sybdb.h>
#include <syberror.h>

Go to the source code of this file.

Data Structures

struct  pdo_dblib_err
 
struct  pdo_dblib_db_handle
 
struct  pdo_dblib_stmt
 
struct  pdo_dblib_keyval
 

Macros

#define PDO_DBLIB_FLAVOUR   "Generic DB-lib"
 
#define SQLTEXT   SYBTEXT
 
#define SQLCHAR   SYBCHAR
 
#define SQLVARCHAR   SYBVARCHAR
 
#define SQLINT1   SYBINT1
 
#define SQLINT2   SYBINT2
 
#define SQLINT4   SYBINT4
 
#define SQLINT8   SYBINT8
 
#define SQLINTN   SYBINTN
 
#define SQLBIT   SYBBIT
 
#define SQLFLT4   SYBREAL
 
#define SQLFLT8   SYBFLT8
 
#define SQLFLTN   SYBFLTN
 
#define SQLDECIMAL   SYBDECIMAL
 
#define SQLNUMERIC   SYBNUMERIC
 
#define SQLDATETIME   SYBDATETIME
 
#define SQLDATETIM4   SYBDATETIME4
 
#define SQLDATETIMN   SYBDATETIMN
 
#define SQLMONEY   SYBMONEY
 
#define SQLMONEY4   SYBMONEY4
 
#define SQLMONEYN   SYBMONEYN
 
#define SQLIMAGE   SYBIMAGE
 
#define SQLBINARY   SYBBINARY
 
#define SQLVARBINARY   SYBVARBINARY
 
#define SQLUNIQUE   36 /* FreeTDS Hack */
 
#define DBERRHANDLE(a, b)
 
#define DBMSGHANDLE(a, b)
 
#define DBSETOPT(a, b, c)
 
#define NO_MORE_RPC_RESULTS   3
 
#define dbfreelogin   dbloginfree
 
#define dbrpcexec   dbrpcsend
 
#define DATETIME_MAX_LEN   63
 
#define DBLIB_G(v)
 

Typedefs

typedef short TDS_SHORT
 
typedef unsigned char * LPBYTE
 
typedef float DBFLT4
 

Enumerations

enum  {
  PDO_DBLIB_ATTR_CONNECTION_TIMEOUT = PDO_ATTR_DRIVER_SPECIFIC , PDO_DBLIB_ATTR_QUERY_TIMEOUT , PDO_DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER , PDO_DBLIB_ATTR_VERSION ,
  PDO_DBLIB_ATTR_TDS_VERSION , PDO_DBLIB_ATTR_SKIP_EMPTY_ROWSETS , PDO_DBLIB_ATTR_DATETIME_CONVERT
}
 

Functions

int pdo_dblib_error_handler (DBPROCESS *dbproc, int severity, int dberr, int oserr, char *dberrstr, char *oserrstr)
 
int pdo_dblib_msg_handler (DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *procname, int line)
 
void pdo_dblib_err_dtor (pdo_dblib_err *err)
 

Variables

const pdo_driver_t pdo_dblib_driver
 
const struct pdo_stmt_methods dblib_stmt_methods
 
pdo_dblib_err err
 
char sqlstate [6]
 

Macro Definition Documentation

◆ DATETIME_MAX_LEN

#define DATETIME_MAX_LEN   63

Definition at line 97 of file php_pdo_dblib_int.h.

◆ DBERRHANDLE

#define DBERRHANDLE ( a,
b )
Value:
dberrhandle(b)

Definition at line 80 of file php_pdo_dblib_int.h.

◆ dbfreelogin

#define dbfreelogin   dbloginfree

Definition at line 84 of file php_pdo_dblib_int.h.

◆ DBLIB_G

#define DBLIB_G ( v)
Value:
uint32_t v
Definition cdf.c:1237
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
Definition zend_API.h:274

Definition at line 153 of file php_pdo_dblib_int.h.

◆ DBMSGHANDLE

#define DBMSGHANDLE ( a,
b )
Value:
dbmsghandle(b)

Definition at line 81 of file php_pdo_dblib_int.h.

◆ dbrpcexec

#define dbrpcexec   dbrpcsend

Definition at line 85 of file php_pdo_dblib_int.h.

◆ DBSETOPT

#define DBSETOPT ( a,
b,
c )
Value:
dbsetopt(a, b, c, -1)
$obj a
Definition test.php:84

Definition at line 82 of file php_pdo_dblib_int.h.

◆ NO_MORE_RPC_RESULTS

#define NO_MORE_RPC_RESULTS   3

Definition at line 83 of file php_pdo_dblib_int.h.

◆ PDO_DBLIB_FLAVOUR

#define PDO_DBLIB_FLAVOUR   "Generic DB-lib"

Definition at line 24 of file php_pdo_dblib_int.h.

◆ SQLBINARY

#define SQLBINARY   SYBBINARY

Definition at line 72 of file php_pdo_dblib_int.h.

◆ SQLBIT

#define SQLBIT   SYBBIT

Definition at line 56 of file php_pdo_dblib_int.h.

◆ SQLCHAR

#define SQLCHAR   SYBCHAR

Definition at line 49 of file php_pdo_dblib_int.h.

◆ SQLDATETIM4

#define SQLDATETIM4   SYBDATETIME4

Definition at line 63 of file php_pdo_dblib_int.h.

◆ SQLDATETIME

#define SQLDATETIME   SYBDATETIME

Definition at line 62 of file php_pdo_dblib_int.h.

◆ SQLDATETIMN

#define SQLDATETIMN   SYBDATETIMN

Definition at line 64 of file php_pdo_dblib_int.h.

◆ SQLDECIMAL

#define SQLDECIMAL   SYBDECIMAL

Definition at line 60 of file php_pdo_dblib_int.h.

◆ SQLFLT4

#define SQLFLT4   SYBREAL

Definition at line 57 of file php_pdo_dblib_int.h.

◆ SQLFLT8

#define SQLFLT8   SYBFLT8

Definition at line 58 of file php_pdo_dblib_int.h.

◆ SQLFLTN

#define SQLFLTN   SYBFLTN

Definition at line 59 of file php_pdo_dblib_int.h.

◆ SQLIMAGE

#define SQLIMAGE   SYBIMAGE

Definition at line 71 of file php_pdo_dblib_int.h.

◆ SQLINT1

#define SQLINT1   SYBINT1

Definition at line 51 of file php_pdo_dblib_int.h.

◆ SQLINT2

#define SQLINT2   SYBINT2

Definition at line 52 of file php_pdo_dblib_int.h.

◆ SQLINT4

#define SQLINT4   SYBINT4

Definition at line 53 of file php_pdo_dblib_int.h.

◆ SQLINT8

#define SQLINT8   SYBINT8

Definition at line 54 of file php_pdo_dblib_int.h.

◆ SQLINTN

#define SQLINTN   SYBINTN

Definition at line 55 of file php_pdo_dblib_int.h.

◆ SQLMONEY

#define SQLMONEY   SYBMONEY

Definition at line 68 of file php_pdo_dblib_int.h.

◆ SQLMONEY4

#define SQLMONEY4   SYBMONEY4

Definition at line 69 of file php_pdo_dblib_int.h.

◆ SQLMONEYN

#define SQLMONEYN   SYBMONEYN

Definition at line 70 of file php_pdo_dblib_int.h.

◆ SQLNUMERIC

#define SQLNUMERIC   SYBNUMERIC

Definition at line 61 of file php_pdo_dblib_int.h.

◆ SQLTEXT

#define SQLTEXT   SYBTEXT

Definition at line 48 of file php_pdo_dblib_int.h.

◆ SQLUNIQUE

#define SQLUNIQUE   36 /* FreeTDS Hack */

Definition at line 77 of file php_pdo_dblib_int.h.

◆ SQLVARBINARY

#define SQLVARBINARY   SYBVARBINARY

Definition at line 73 of file php_pdo_dblib_int.h.

◆ SQLVARCHAR

#define SQLVARCHAR   SYBVARCHAR

Definition at line 50 of file php_pdo_dblib_int.h.

Typedef Documentation

◆ DBFLT4

typedef float DBFLT4

Definition at line 91 of file php_pdo_dblib_int.h.

◆ LPBYTE

typedef unsigned char* LPBYTE

Definition at line 89 of file php_pdo_dblib_int.h.

◆ TDS_SHORT

typedef short TDS_SHORT

Definition at line 87 of file php_pdo_dblib_int.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PDO_DBLIB_ATTR_CONNECTION_TIMEOUT 
PDO_DBLIB_ATTR_QUERY_TIMEOUT 
PDO_DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER 
PDO_DBLIB_ATTR_VERSION 
PDO_DBLIB_ATTR_TDS_VERSION 
PDO_DBLIB_ATTR_SKIP_EMPTY_ROWSETS 
PDO_DBLIB_ATTR_DATETIME_CONVERT 

Definition at line 157 of file php_pdo_dblib_int.h.

Function Documentation

◆ pdo_dblib_err_dtor()

void pdo_dblib_err_dtor ( pdo_dblib_err * err)

Definition at line 147 of file pdo_dblib.c.

◆ pdo_dblib_error_handler()

int pdo_dblib_error_handler ( DBPROCESS * dbproc,
int severity,
int dberr,
int oserr,
char * dberrstr,
char * oserrstr )

Definition at line 81 of file pdo_dblib.c.

◆ pdo_dblib_msg_handler()

int pdo_dblib_msg_handler ( DBPROCESS * dbproc,
DBINT msgno,
int msgstate,
int severity,
char * msgtext,
char * srvname,
char * procname,
int line )

Definition at line 126 of file pdo_dblib.c.

Variable Documentation

◆ dblib_stmt_methods

const struct pdo_stmt_methods dblib_stmt_methods
extern

Definition at line 507 of file dblib_stmt.c.

◆ err

Definition at line 144 of file php_pdo_dblib_int.h.

◆ pdo_dblib_driver

const pdo_driver_t pdo_dblib_driver
extern

Definition at line 635 of file dblib_driver.c.

◆ sqlstate

char sqlstate[6]

Definition at line 145 of file php_pdo_dblib_int.h.