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()
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 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
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 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()
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 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
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()

Completed in 40 milliseconds