Home
last modified time | relevance | path

Searched refs:driver_options (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/pdo_mysql/
H A Dmysql_driver.c245 S->max_length = pdo_attr_lval(driver_options, PDO_ATTR_MAX_COLUMN_LEN, 0); in mysql_handle_preparer()
693 if (!driver_options) {
743 if (driver_options) {
753 H->emulate_prepare = pdo_attr_lval(driver_options,
755 H->emulate_prepare = pdo_attr_lval(driver_options,
765 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_FOUND_ROWS, 0)) {
769 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_IGNORE_SPACE, 0)) {
778 if (pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_LOCAL_INFILE, 0)) {
838 compress = pdo_attr_lval(driver_options, PDO_MYSQL_ATTR_COMPRESS, 0);
848 ssl_ca = pdo_attr_strval(driver_options, PDO_MYSQL_ATTR_SSL_CA, NULL);
[all …]
/php-src/ext/pdo_sqlite/tests/
H A Dbug48773.phpt15 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 Ddblib_driver.c94 …ool dblib_handle_preparer(pdo_dbh_t *dbh, zend_string *sql, pdo_stmt_t *stmt, zval *driver_options) in dblib_handle_preparer() argument
443 static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options) in pdo_dblib_handle_factory() argument
500 if (driver_options) { in pdo_dblib_handle_factory()
501 int connect_timeout = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_CONNECTION_TIMEOUT, -1); in pdo_dblib_handle_factory()
502 int query_timeout = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_QUERY_TIMEOUT, -1); in pdo_dblib_handle_factory()
503 int timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, 30); in pdo_dblib_handle_factory()
515 …H->assume_national_character_set_strings = pdo_attr_lval(driver_options, PDO_ATTR_DEFAULT_STR_PARA… in pdo_dblib_handle_factory()
516 …H->stringify_uniqueidentifier = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_STRINGIFY_UNIQUEIDENT… in pdo_dblib_handle_factory()
517 H->skip_empty_rowsets = pdo_attr_lval(driver_options, PDO_DBLIB_ATTR_SKIP_EMPTY_ROWSETS, 0); in pdo_dblib_handle_factory()
518 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 Dsqlite_driver.c175 …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()
797 static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_sqlite_handle_factory() argument
822 …flags = pdo_attr_lval(driver_options, PDO_SQLITE_ATTR_OPEN_FLAGS, SQLITE_OPEN_READWRITE | SQLITE_O… in pdo_sqlite_handle_factory()
840 if (driver_options) { in pdo_sqlite_handle_factory()
841 timeout = pdo_attr_lval(driver_options, PDO_ATTR_TIMEOUT, timeout); in pdo_sqlite_handle_factory()
/php-src/ext/pdo_pgsql/
H A Dpgsql_driver.c265 …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 Dodbc_driver.c139 …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 Dphp_pdo_driver.h215 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 Dfirebird_driver.c622 pdo_stmt_t *stmt, zval *driver_options) in firebird_handle_preparer() argument
1341 static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /* {{{ */ in pdo_firebird_handle_factory() argument
1367 H->is_writable_txn = pdo_attr_lval(driver_options, PDO_FB_WRITABLE_TRANSACTION, 1); in pdo_firebird_handle_factory()
1368 …zend_long txn_isolation_level = pdo_attr_lval(driver_options, PDO_FB_TRANSACTION_ISOLATION_LEVEL, … in pdo_firebird_handle_factory()

Completed in 55 milliseconds