/php-src/ext/pdo_mysql/ |
H A D | mysql_driver.c | 245 S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0); in mysql_handle_preparer() 704 if (!driver_options) { 754 if (driver_options) { 764 H->emulate_prepare = pdo_attr_lval(driver_options, 766 H->emulate_prepare = pdo_attr_lval(driver_options, 776 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_FOUND_ROWS, 0)) { 780 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_IGNORE_SPACE, 0)) { 789 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_LOCAL_INFILE, 0)) { 849 compress = pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_COMPRESS, 0); 859 ssl_ca = pdo_attr_strval(driver_options, PDO_MYSQL_ATTR_SSL_CA, NULL); [all …]
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | bug48773.phpt | 15 function __construct($dsn, $username, $password, $driver_options = array()) { 16 $driver_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; 17 parent::__construct($dsn, $username, $password, $driver_options);
|
/php-src/ext/pdo_dblib/ |
H A D | dblib_driver.c | 94 …ool dblib_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options) in dblib_handle_preparer() argument 449 static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options) in pdo_dblib_handle_factory() argument 506 if (driver_options) { in pdo_dblib_handle_factory() 507 int connect_timeout = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_CONNECTION_TIMEOUT, -1); in pdo_dblib_handle_factory() 508 int query_timeout = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_QUERY_TIMEOUT, -1); in pdo_dblib_handle_factory() 509 int timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, 30); in pdo_dblib_handle_factory() 521 …H->assume_national_character_set_strings = pdo_attr_lval(driver_options, PDO_ATTR_DEFAULT_STR_PARA… in pdo_dblib_handle_factory() 522 …H->stringify_uniqueidentifier = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_STRINGIFY_UNIQUEIDENT… in pdo_dblib_handle_factory() 523 H->skip_empty_rowsets = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_SKIP_EMPTY_ROWSETS, 0); in pdo_dblib_handle_factory() 524 H->datetime_convert = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_DATETIME_CONVERT, 0); in pdo_dblib_handle_factory()
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 175 …ol sqlite_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options) in sqlite_handle_preparer() argument 187 if (PDO_CURSOR_FWDONLY != pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, PDO_CURSOR_FWDONLY)) { in sqlite_handle_preparer() 794 static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_sqlite_handle_factory() argument 819 …flags = pdo_attr_lval(driver_options, PDO_SQLITE_ATTR_OPEN_FLAGS, SQLITE_OPEN_READWRITE | SQLITE_O… in pdo_sqlite_handle_factory() 837 if (driver_options) { in pdo_sqlite_handle_factory() 838 timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout); in pdo_sqlite_handle_factory()
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 265 …ool pgsql_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options) in pgsql_handle_preparer() argument 281 scrollable = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, in pgsql_handle_preparer() 290 } else if (driver_options) { in pgsql_handle_preparer() 291 if (pdo_attr_lval(driver_options, PDO_ATTR_EMULATE_PREPARES, H->emulate_prepares) == 1) { in pgsql_handle_preparer() 294 if (pdo_attr_lval(driver_options, PDO_PGSQL_ATTR_DISABLE_PREPARES, H->disable_prepares) == 1) { in pgsql_handle_preparer() 310 driver_options in pgsql_handle_preparer() 311 && (val = zend_hash_index_find(Z_ARRVAL_P(driver_options), PDO_ATTR_PREFETCH)) in pgsql_handle_preparer() 1376 static int pdo_pgsql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_pgsql_handle_factory() argument 1405 if (driver_options) { in pdo_pgsql_handle_factory() 1406 connect_timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, 30); in pdo_pgsql_handle_factory()
|
/php-src/ext/pdo_odbc/ |
H A D | odbc_driver.c | 139 …bool odbc_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options) in odbc_handle_preparer() argument 179 cursor_type = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, PDO_CURSOR_FWDONLY); in odbc_handle_preparer() 468 static int pdo_odbc_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_odbc_handle_factory() argument 516 …cursor_lib = pdo_attr_lval(driver_options, PDO_ODBC_ATTR_USE_CURSOR_LIBRARY, SQL_CUR_USE_IF_NEEDED… in pdo_odbc_handle_factory()
|
/php-src/ext/pdo/ |
H A D | php_pdo_driver.h | 215 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options); 226 … (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options);
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_driver.c | 622 pdo_stmt_t *stmt, zval *driver_options) in firebird_handle_preparer() argument 1327 static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_firebird_handle_factory() argument 1353 H->is_writable_txn = pdo_attr_lval(driver_options, PDO_FB_WRITABLE_TRANSACTION, 1); in pdo_firebird_handle_factory() 1354 …zend_long txn_isolation_level = pdo_attr_lval(driver_options, PDO_FB_TRANSACTION_ISOLATION_LEVEL, … in pdo_firebird_handle_factory()
|