Home
last modified time | relevance | path

Searched refs:Pdo (Results 1 – 25 of 56) sorted by relevance

123

/php-src/ext/pdo_firebird/tests/
H A Dtransaction_isolation_level_attr.phpt18 'Pdo\\Firebird::READ_COMMITTED',
19 'Pdo\\Firebird::REPEATABLE_READ',
20 'Pdo\\Firebird::SERIALIZABLE',
93 OK: Pdo\Firebird::READ_COMMITTED
94 OK: Pdo\Firebird::REPEATABLE_READ
95 OK: Pdo\Firebird::SERIALIZABLE
97 Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL must be a valid transaction isolation level (Pdo\Firebird…
101 OK: Pdo\Firebird::READ_COMMITTED
103 OK: Pdo\Firebird::REPEATABLE_READ
105 OK: Pdo\Firebird::SERIALIZABLE
[all …]
H A Dattr_datetime_format.phpt16 echo 'ATTR_DATE_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_DATE_FORMAT), "\n";
17 echo 'ATTR_TIME_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIME_FORMAT), "\n";
18 echo 'ATTR_TIMESTAMP_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT), "\n";
20 $dbh->setAttribute(Pdo\firebird::ATTR_DATE_FORMAT, 'Y----m----d');
21 $dbh->setAttribute(Pdo\firebird::ATTR_TIME_FORMAT, 'H::::i::::s');
22 $dbh->setAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT, 'Y----m----d....H::::i::::s');
27 echo 'ATTR_DATE_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_DATE_FORMAT), "\n";
28 echo 'ATTR_TIME_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIME_FORMAT), "\n";
29 echo 'ATTR_TIMESTAMP_FORMAT: ', $dbh->getAttribute(Pdo\firebird::ATTR_TIMESTAMP_FORMAT), "\n";
H A Dtransaction_access_mode.phpt32 Pdo\Firebird::WRITABLE_TRANSACTION => $value['val'],
87 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
92 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
96 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
101 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
105 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
109 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
114 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, true);
118 var_dump($dbh->getAttribute(Pdo\Firebird::WRITABLE_TRANSACTION));
123 $dbh->setAttribute(Pdo\Firebird::WRITABLE_TRANSACTION, false);
[all …]
H A Dtestdb.inc24 function connectToDb(): Pdo\Firebird {
25 …return Pdo\Firebird::connect(PDO_FIREBIRD_TEST_DSN, PDO_FIREBIRD_TEST_USER, PDO_FIREBIRD_TEST_PASS…
H A Dtransaction_isolation_level_behavior.phpt54 [Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL => Pdo\Firebird::READ_COMMITTED]
77 [Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL => Pdo\Firebird::REPEATABLE_READ]
107 [Pdo\Firebird::TRANSACTION_ISOLATION_LEVEL => Pdo\Firebird::SERIALIZABLE]
/php-src/ext/pdo_sqlite/tests/subclasses/
H A Dpdo_sqlite_constants.phpt9 var_dump(Pdo\Sqlite::DETERMINISTIC);
10 var_dump(Pdo\Sqlite::ATTR_OPEN_FLAGS);
11 var_dump(Pdo\Sqlite::OPEN_READONLY);
12 var_dump(Pdo\Sqlite::OPEN_READWRITE);
13 var_dump(Pdo\Sqlite::OPEN_CREATE);
14 var_dump(Pdo\Sqlite::ATTR_READONLY_STATEMENT);
15 var_dump(Pdo\Sqlite::ATTR_EXTENDED_RESULT_CODES);
H A Dpdo_sqlite_createaggregate_arg_error.phpt2 Test Pdo\Sqlite::createAggregate() arguments error
10 $db = new Pdo\Sqlite('sqlite::memory:');
57 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
58 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
59 Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
60 Pdo\Sqlite::createAggregate(): Argument #2 ($step) must be a valid callback, no array or string giv…
61 Pdo\Sqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, no array or string…
62 Pdo\Sqlite::createAggregate(): Argument #4 ($numArgs) must be of type int, null given
H A Dpdo_sqlite_createafunction_arg_error.phpt2 Test Pdo\Sqlite::createFunction() arguments error
10 $db = new Pdo\Sqlite('sqlite::memory:');
45 Pdo\Sqlite::createFunction(): Argument #1 ($function_name) must be of type string, null given
46 Pdo\Sqlite::createFunction(): Argument #2 ($callback) must be a valid callback, no array or string …
47 Pdo\Sqlite::createFunction(): Argument #3 ($num_args) must be of type int, null given
48 Pdo\Sqlite::createFunction(): Argument #4 ($flags) must be of type int, null given
H A Dpdosqlite_002.phpt2 Pdo\Sqlite create through PDO::connect and function define.
8 $db = Pdo::connect('sqlite::memory:');
9 if (!$db instanceof Pdo\Sqlite) {
10 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n";
17 $db->createFunction('testing', function($v) { return strtolower($v); }, 1, Pdo\Sqlite::DETERMINISTI…
H A Dpdosqlite_load_extension_failure.phpt2 Pdo\Sqlite load extension
7 if (!method_exists(Pdo\Sqlite::class, "loadExtension")) {
14 $db = Pdo\Sqlite::connect('sqlite::memory:');
15 if (!$db instanceof Pdo\Sqlite) {
16 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n";
H A Dpdo_sqlite_createcollation_arg_error.phpt2 Test Pdo\Sqlite::createCollation() arguments error
10 $db = new Pdo\Sqlite('sqlite::memory:');
33 Pdo\Sqlite::createCollation(): Argument #1 ($name) must be of type string, null given
34 Pdo\Sqlite::createCollation(): Argument #2 ($callback) must be a valid callback, no array or string…
H A Dpdosqlite_005.phpt10 Pdo\Pgsql::connect('sqlite::memory:');
17 Pdo\Pgsql::connect() cannot be called when connecting to the "sqlite" driver, either Pdo\Sqlite::co…
H A Dpdosqlite_003.phpt2 Pdo\Sqlite load extension
7 if (!method_exists(Pdo\Sqlite::class, "loadExtension")) {
26 $db = Pdo::connect('sqlite::memory:');
27 if (!$db instanceof Pdo\Sqlite) {
28 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($db) . "\n";
H A Dpdosqlite_001.phpt2 Pdo\Sqlite basic
8 $db = new Pdo\Sqlite('sqlite::memory:');
15 $db->createFunction('testing', function($v) { return strtolower($v); }, 1, Pdo\Sqlite::DETERMINISTI…
H A Dpdo_sqlite_createaggregate_002.phpt9 $pdo = new Pdo\Sqlite('sqlite::memory:');
24 Pdo\Sqlite::createAggregate(): Argument #2 ($step) must be a valid callback, function "a" not found…
25 Pdo\Sqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, function "" not fo…
H A Dgc.phpt15 $obj->a = Pdo::connect('sqlite::memory:');
17 if (!$obj->a instanceof Pdo\Sqlite) {
18 echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($obj->a) . "]\n";
/php-src/ext/pdo_pgsql/tests/
H A Dpdopgsql_003.phpt2 Pdo\Pgsql getWarningCount
17 $db = Pdo::connect($config['ENV']['PDOTEST_DSN']);
18 if (!$db instanceof Pdo\Pgsql) {
19 echo "Wrong class type. Should be Pdo\Pgsql but is " . get_class($db) . "\n";
H A Dpdopgsql_002.phpt2 Pdo\Pgsql connect through PDO::connect
17 $db = Pdo::connect($config['ENV']['PDOTEST_DSN']);
18 if (!$db instanceof Pdo\Pgsql) {
19 echo "Wrong class type. Should be Pdo\Pgsql but is " . get_class($db) . "\n";
H A Dpdopgsql_setNoticeCallback_trampoline_no_leak.phpt2 Pdo\Pgsql::setNoticeCallback() use F ZPP for trampoline callback and does not leak
17 $db = new Pdo\Pgsql($config['ENV']['PDOTEST_DSN']);
24 $rc = new ReflectionClass(Pdo\Pgsql::class);
37 [ null, [ $t, 'disp' ] ], // Valid callback on an unvalid Pdo.
/php-src/ext/pdo_mysql/tests/
H A Dpdomysql_003.phpt15 $db = Pdo::connect(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS);
16 if (!$db instanceof Pdo\Mysql) {
17 echo "Wrong class type. Should be Pdo\Mysql but is " . get_class($db) . "\n";
H A Dpdomysql_002.phpt15 $db = Pdo::connect(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS);
16 if (!$db instanceof Pdo\Mysql) {
17 echo "Wrong class type. Should be Pdo\Mysql but is " . get_class($db) . "\n";
/php-src/ext/pdo_dblib/tests/
H A Dpdodblib_002.phpt2 Pdo\Dblib create through PDO::connect
16 if (!$db instanceof Pdo\Dblib) {
17 echo "Wrong class type. Should be Pdo\Dblib but is " . get_class($db) . "\n";
H A Dpdodblib_001.phpt2 Pdo\Dblib basic
14 $db = getDbConnection(Pdo\Dblib::class);
/php-src/ext/pdo_odbc/tests/
H A Dpdoodbc_002.phpt15 $db = Pdo\Odbc::connect($config['ENV']['PDOTEST_DSN'], $config['ENV']['PDOTEST_USER'], $config['ENV…
16 if (!$db instanceof Pdo\Odbc) {
17 echo "Wrong class type. Should be Pdo\Odbc but is " . get_class($db) . "\n";
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.stub.php5 namespace Pdo; namespace
64 int $flags = \Pdo\Sqlite::OPEN_READONLY

Completed in 19 milliseconds

123