/PHP-7.4/ext/pdo_oci/tests/ |
H A D | pdo_oci_attr_client_info.phpt | 16 $dbh = PDOTest::factory(); 18 $stmt = $dbh->query($query); 23 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_INFO, "some client info")); 25 $stmt = $dbh->query($query); 30 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_INFO, "something else!")); 32 $stmt = $dbh->query($query); 37 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_INFO, null)); 39 $stmt = $dbh->query($query);
|
H A D | pdo_oci_attr_client_identifier.phpt | 16 $dbh = PDOTest::factory(); 18 $stmt = $dbh->query($query); 23 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_IDENTIFIER, "some client identifier")); 25 $stmt = $dbh->query($query); 30 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_IDENTIFIER, "something else!")); 32 $stmt = $dbh->query($query); 37 var_dump($dbh->setAttribute(PDO::OCI_ATTR_CLIENT_IDENTIFIER, null)); 39 $stmt = $dbh->query($query);
|
H A D | pdo_oci_attr_autocommit_3.phpt | 16 $dbh = PDOTest::factory(); 18 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT); 19 $dbh->exec("drop table pdo_ac_tab"); 21 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 24 var_dump($dbh->getAttribute(PDO::ATTR_AUTOCOMMIT)); 28 $dbh->exec("create table pdo_ac_tab (col1 varchar2(20))"); 30 $dbh->exec("insert into pdo_ac_tab (col1) values ('some data')"); 32 $dbh = null; // close first connection
|
H A D | pecl_bug_6364.phpt | 13 $dbh = PDOTest::factory(); 15 @$dbh->exec ("drop table bug_6364_t"); 17 $dbh->exec ("create table bug_6364_t (c1 varchar2(10), c2 varchar2(10), c3 varchar2(10), c4 varchar… 19 $dbh->exec ("create or replace procedure bug_6364_sp(p1 IN varchar2, p2 IN varchar2, p3 IN varchar2… 21 $stmt = $dbh->prepare("call bug_6364_sp('p1','p2','p3',?,?)"); 29 $stmt->execute() or die ("Execution error: " . var_dump($dbh->errorInfo())); 34 foreach ($dbh->query("select * from bug_6364_t") as $row) { 41 $dbh->exec ("drop procedure bug_6364_sp"); 42 $dbh->exec ("drop table bug_6364_t");
|
H A D | pdo_oci_attr_module.phpt | 16 $dbh = PDOTest::factory(); 18 var_dump($dbh->setAttribute(PDO::OCI_ATTR_MODULE, "some module")); 20 $stmt = $dbh->query($query); 25 var_dump($dbh->setAttribute(PDO::OCI_ATTR_MODULE, "something else!")); 27 $stmt = $dbh->query($query); 32 var_dump($dbh->setAttribute(PDO::OCI_ATTR_MODULE, null)); 34 $stmt = $dbh->query($query);
|
H A D | pdo_oci_fread_1.phpt | 15 $dbh = PDOTest::factory(); 17 $dbh->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 31 $dbh->exec($stmt); 36 $s = $dbh->query("select data from pdo_oci_fread_tab where id = 1"); 54 $dbh->exec($stmt);
|
H A D | pdo_oci_attr_prefetch_2.phpt | 14 $dbh = PDOTest::factory(); 16 $s = $dbh->prepare("select '' as myempty, null as mynull from dual", array(PDO::ATTR_PREFETCH => 10… 22 $s = $dbh->prepare("select dummy from dual" ); 29 $s = $dbh->prepare("select '' as myempty, null as mynull from dual", array(PDO::ATTR_PREFETCH => 0)… 30 $s = $dbh->prepare("select dummy from dual" );
|
H A D | pdo_oci_stream_1.phpt | 15 $dbh = PDOTest::factory(); 17 $dbh->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 20 @$dbh->exec("drop table pdo_oci_stream_1_tab"); 27 $dbh->exec($stmt); 30 $dbh->exec(" 40 $s = $dbh->prepare("select data from pdo_oci_stream_1_tab where id = 1"); 58 $s = $dbh->prepare("select data from pdo_oci_stream_1_tab where id = 2"); 83 $dbh->exec($stmt);
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | bug66528.phpt | 14 $dbh = MySQLPDOTest::factory(); 15 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 16 $dbh->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false); 18 $dbh->exec('DROP TABLE IF EXISTS test'); 19 $dbh->exec('CREATE TABLE test (a int) engine=innodb'); 20 $dbh->beginTransaction(); 21 $dbh->exec('INSERT INTO test (a) VALUES (1), (2)'); 22 $stmt = $dbh->query('SELECT * FROM test'); 25 $dbh->commit(); 31 $dbh->rollBack(); [all …]
|
/PHP-7.4/ext/pdo_firebird/tests/ |
H A D | bug_aaa.phpt | 11 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); 12 @$dbh->exec('drop table ta_table'); 13 $dbh->exec('create table ta_table (id integer)'); 14 $S = $dbh->prepare('insert into ta_table (id) values (:id) returning id'); 18 unset($dbh);
|
H A D | bug_72583.phpt | 11 @$dbh->exec('drop table atable'); 12 $dbh->exec('create table atable (aint integer, asmi smallint)'); 13 $dbh->exec('insert into atable values (1, -1)'); 14 $S = $dbh->prepare('select aint, asmi from atable'); 19 unset($dbh);
|
H A D | dialect_1.phpt | 15 $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); 16 $dbh->setAttribute(PDO::FB_ATTR_TIMESTAMP_FORMAT, '%Y-%m-%d %H:%M:%S'); 25 $query = $dbh->prepare($sql); 35 $dbh->exec('RECREATE TABLE test_d1(K numeric(15, 2), DT date)'); 37 $query = $dbh->prepare($sql); 42 $query = $dbh->prepare($sql); 49 unset($dbh);
|
H A D | bug_72931.phpt | 11 @$dbh->exec('drop table tablea'); 12 $dbh->exec('create table tablea (id integer)'); 13 $S = $dbh->prepare('insert into tablea (id) values (1) returning id'); 18 unset($dbh);
|
H A D | bug_73087.phpt | 11 @$dbh->exec('drop table atable'); 12 $dbh->exec('create table atable (id integer not null, content blob sub_type 1 segment size 80)'); 13 $S = $dbh->prepare('insert into atable (id, content) values (:id, :content)'); 24 unset($dbh);
|
/PHP-7.4/ext/pgsql/tests/ |
H A D | 80_bug42783.phpt | 12 $dbh = @pg_connect($conn_str); 13 if (!$dbh) { 19 pg_insert($dbh, 'php_test', array()); 23 pg_query($dbh, "DROP TABLE php_test"); 24 pg_close($dbh);
|
H A D | 80_bug32223.phpt | 26 $dbh = @pg_connect($conn_str); 27 if (!$dbh) { 33 $res = pg_query($dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' 40 $res = pg_query($dbh, 'SET client_min_messages TO NOTICE;'); 42 $res = pg_query($dbh, 'SELECT test_notice()'); 49 var_dump(pg_last_notice($dbh)); 52 pg_close($dbh);
|
H A D | 80_bug32223b.phpt | 26 define('dbh', pg_connect($conn_str)); 27 if (!dbh) { 33 $res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' 40 $res = pg_query(dbh, 'SET client_min_messages TO NOTICE;'); 44 $res = pg_query(dbh, 'SELECT test_notice()'); 50 var_dump(pg_last_notice(dbh)); 55 pg_close(dbh);
|
H A D | 80_bug36625.phpt | 12 $dbh = @pg_connect($conn_str); 13 if (!$dbh) { 22 pg_trace($tracefile, 'w', $dbh); 23 $res = pg_query($dbh, 'select 1'); 25 pg_close($dbh);
|
H A D | bug47199.phpt | 12 $dbh = pg_connect($conn_str); 17 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 1)); 18 pg_insert($dbh, $tbl_name, array('null_field' => null, 'not_null_field' => 2)); 22 $query = pg_delete($dbh, $tbl_name, array('null_field' => NULL,'not_null_field' => 2), PGSQL_DML_ST… 26 $query = pg_update($dbh, $tbl_name, array('null_field' => NULL, 'not_null_field' => 0), array('not_… 33 pg_close($dbh);
|
H A D | 80_bug24499.phpt | 12 $dbh = @pg_connect($conn_str); 13 if (!$dbh) { 31 global $dbh; 33 $q = pg_query($dbh, "SELECT id FROM id"); 45 pg_close($dbh);
|
/PHP-7.4/ext/pdo_pgsql/tests/ |
H A D | bug43925.phpt | 13 $dbh = PDOTest::test_factory(__DIR__ . '/common.phpt'); 15 @$dbh->query('DROP TABLE nodes'); 17 $dbh->query(' 26 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (1, 1, 1, 6);'); 27 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (2, 1, 2, 3);'); 28 $dbh->query('INSERT INTO nodes (id, root, lft, rgt) VALUES (3, 1, 4, 5);'); 31 $stmt = $dbh->prepare(' 53 $dbh->query('DROP TABLE nodes');
|
/PHP-7.4/ext/pdo/ |
H A D | php_pdo_driver.h | 242 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options); 249 typedef int (*pdo_dbh_close_func)(pdo_dbh_t *dbh); 261 typedef int (*pdo_dbh_txn_func)(pdo_dbh_t *dbh); 264 typedef int (*pdo_dbh_set_attr_func)(pdo_dbh_t *dbh, zend_long attr, zval *val); 279 typedef int (*pdo_dbh_get_attr_func)(pdo_dbh_t *dbh, zend_long attr, zval *val); 284 typedef int (*pdo_dbh_check_liveness_func)(pdo_dbh_t *dbh); 289 typedef void (*pdo_dbh_request_shutdown)(pdo_dbh_t *dbh); 589 pdo_dbh_t *dbh; member 688 PDO_API void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, 691 PDO_API void php_pdo_dbh_addref(pdo_dbh_t *dbh); [all …]
|
H A D | pdo_stmt.c | 110 if (!stmt->dbh) { \ 166 if (stmt->dbh->skip_param_evt & (1 << event_type)) { in dispatch_param_event() 207 …if (stmt->dbh->native_case != stmt->dbh->desired_case && stmt->dbh->desired_case != PDO_CASE_NATUR… in pdo_stmt_describe_columns() 210 switch (stmt->dbh->desired_case) { in pdo_stmt_describe_columns() 657 if (stmt->dbh->stringify) { in fetch_value() 1674 if (stmt->dbh->methods->fetch_err) { in PHP_METHOD() 1675 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value); in PHP_METHOD() 1747 pdo_raise_impl_error(stmt->dbh, stmt, "IM001", in PHP_METHOD() 1937 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode() 1968 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode() [all …]
|
/PHP-7.4/ext/pdo_sqlite/tests/ |
H A D | bug66033.phpt | 10 public $dbh; 11 protected function __construct($dbh) { 12 $this->dbh = $dbh;
|
/PHP-7.4/ext/pdo_oci/ |
H A D | php_pdo_oci_int.h | 89 ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isini… 90 #define oci_init_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, TRUE, __FILE__, __LINE__) 91 #define oci_drv_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, FALSE, __FILE__, __LINE__) 92 #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LI…
|