Home
last modified time | relevance | path

Searched refs:dbh (Results 26 – 50 of 65) sorted by relevance

123

/PHP-5.5/ext/pdo_pgsql/tests/
H A Dbug43925.phpt13 $dbh = PDOTest::test_factory(dirname(__FILE__) . '/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-5.5/ext/pdo/
H A Dphp_pdo_driver.h235 int (*db_handle_factory)(pdo_dbh_t *dbh, zval *driver_options TSRMLS_DC);
242 typedef int (*pdo_dbh_close_func)(pdo_dbh_t *dbh TSRMLS_DC);
254 typedef int (*pdo_dbh_txn_func)(pdo_dbh_t *dbh TSRMLS_DC);
257 typedef int (*pdo_dbh_set_attr_func)(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC);
272 typedef int (*pdo_dbh_get_attr_func)(pdo_dbh_t *dbh, long attr, zval *val TSRMLS_DC);
277 typedef int (*pdo_dbh_check_liveness_func)(pdo_dbh_t *dbh TSRMLS_DC);
282 typedef void (*pdo_dbh_request_shutdown)(pdo_dbh_t *dbh TSRMLS_DC);
574 pdo_dbh_t *dbh; member
655 PDO_API void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt,
658 PDO_API void php_pdo_dbh_addref(pdo_dbh_t *dbh TSRMLS_DC);
[all …]
H A DREADME24 $dbh = new PDO("...", $user, $pass, array(PDO_ATTR_AUTOCOMMIT => true));
30 $dbh = new PDO("...", $user, $pass, array(PDO_ATTR_AUTOCOMMIT => false));
32 When auto-commit is off, you must then use $dbh->beginTransaction() to
33 initiate a transaction. When your work is done, you then call $dbh->commit()
34 or $dbh->rollBack() to persist or abort your changes respectively. Not all
39 $dbh->setAttribute(PDO_ATTR_AUTOCOMMIT, false);
45 $dbh->beginTransaction(). When you commit() or rollBack() such a transaction,
H A Dpdo_stmt.c112 if (!stmt->dbh) { \
217 …if (stmt->dbh->native_case != stmt->dbh->desired_case && stmt->dbh->desired_case != PDO_CASE_NATUR… in pdo_stmt_describe_columns()
220 switch (stmt->dbh->desired_case) { in pdo_stmt_describe_columns()
674 if (stmt->dbh->stringify) { in fetch_value()
1713 if (stmt->dbh->methods->fetch_err) { in PHP_METHOD()
1714 stmt->dbh->methods->fetch_err(stmt->dbh, stmt, return_value TSRMLS_CC); in PHP_METHOD()
1974 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode()
2007 if (stmt->dbh->is_persistent) { in pdo_stmt_setup_fetch_mode()
2276 if (!stmt->dbh) { in dbstmt_method_get()
2282 if (!pdo_hash_methods(stmt->dbh, in dbstmt_method_get()
[all …]
H A Dpdo_sql_parser.c516 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "no parameters were bound" TSRMLS_CC); in pdo_parse_params()
556 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); in pdo_parse_params()
559 if (stmt->dbh->methods->quoter) { in pdo_parse_params()
569 if (!stmt->dbh->methods->quoter(stmt->dbh, buf, len, &plc->quoted, &plc->qlen, in pdo_parse_params()
573 strncpy(stmt->error_code, stmt->dbh->error_code, 6); in pdo_parse_params()
611 if (!stmt->dbh->methods->quoter(stmt->dbh, Z_STRVAL(tmp_param), in pdo_parse_params()
616 strncpy(stmt->error_code, stmt->dbh->error_code, 6); in pdo_parse_params()
762 if(stmt->dbh->max_escaped_char_length) {
763 padding = stmt->dbh->max_escaped_char_length;
811 if(stmt->dbh->methods->quoter(stmt->dbh, Z_STRVAL_P(param->parameter),
[all …]
/PHP-5.5/ext/pgsql/tests/
H A D80_bug36625.phpt12 $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 Dbug47199.phpt12 $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 D80_bug24499.phpt12 $dbh = @pg_connect($conn_str);
13 if (!$dbh) {
31 global $dbh;
33 $q = pg_query($dbh, "SELECT id FROM id");
45 pg_close($dbh);
H A D80_bug27597.phpt12 $dbh = @pg_connect($conn_str);
13 if (!$dbh) {
39 pg_close($dbh);
H A Dbug46408.phpt15 $dbh = pg_connect($conn_str);
19 pg_close($dbh);
/PHP-5.5/ext/pdo_sqlite/tests/
H A Dbug66033.phpt10 public $dbh;
11 protected function __construct($dbh) {
12 $this->dbh = $dbh;
/PHP-5.5/ext/pdo_oci/tests/
H A Dpdo_oci_attr_prefetch_2.phpt14 $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 Dpdo_oci_fread_1.phpt15 $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 Dpdo_oci_attr_prefetch_1.phpt14 $dbh = PDOTest::factory();
18 $dbh = PDOTest::factory();
21 $dbh->setAttribute(PDO::ATTR_PREFETCH, 102);
24 $s = $dbh->prepare("select dummy from dual" );
H A Dpdo_oci_stream_1.phpt15 $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);
H A Dpdo_oci_attr_server.phpt14 $dbh = PDOTest::factory();
18 var_dump($dbh->getAttribute(PDO::ATTR_SERVER_VERSION));
22 $si = $dbh->getAttribute(PDO::ATTR_SERVER_INFO);
H A Dpdo_oci_attr_drivername.phpt14 $dbh = PDOTest::factory();
15 var_dump($dbh->getAttribute(PDO::ATTR_DRIVER_NAME));
/PHP-5.5/ext/pdo_oci/
H A Dphp_pdo_oci_int.h89 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__ TS…
91 #define oci_drv_error(w) _oci_error(H->err, dbh, NULL, w, H->last_err, FALSE, __FILE__, __LINE__ TS…
92 #define oci_stmt_error(w) _oci_error(S->err, stmt->dbh, stmt, w, S->last_err, FALSE, __FILE__, __LI…
/PHP-5.5/ext/pdo_odbc/
H A Dphp_pdo_odbc_int.h170 void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement, char *what, const c…
171 #define pdo_odbc_drv_error(what) pdo_odbc_error(dbh, NULL, SQL_NULL_HSTMT, what, __FILE__, __LINE__…
172 #define pdo_odbc_stmt_error(what) pdo_odbc_error(stmt->dbh, stmt, SQL_NULL_HSTMT, what, __FILE__, _…
173 #define pdo_odbc_doer_error(what) pdo_odbc_error(dbh, NULL, stmt, what, __FILE__, __LINE__ TSRMLS_C…
/PHP-5.5/ext/pdo/tests/
H A Dpdo_026.phpt24 public $dbh;
26 protected function __construct($dbh)
28 $this->dbh = $dbh;
70 var_dump(get_class($stmt->dbh));
H A Dpdo_029.phpt24 public $dbh;
26 protected function __construct($dbh)
28 $this->dbh = $dbh;
78 var_dump(get_class($stmt->dbh));
H A Dpdo_030.phpt24 public $dbh;
26 protected function __construct($dbh)
28 $this->dbh = $dbh;
79 var_dump(get_class($stmt->dbh));
/PHP-5.5/ext/sybase_ct/tests/
H A Dtest.inc63 // {{{ void sybase_select_ex(resource dbh, string query)
65 function sybase_select_ex($dbh, $query) {
67 $h= sybase_query($query, $dbh);
79 // {{{ mixed sybase_select_single(resource dbh, string query)
81 function sybase_select_single($dbh, $query) {
82 $a = sybase_fetch_row(sybase_query($query, $dbh));
/PHP-5.5/ext/pdo_mysql/
H A Dpdo_mysql.c65 pdo_dbh_t * dbh = zend_object_store_get_object(zv TSRMLS_CC); in ZEND_DECLARE_MODULE_GLOBALS() local
67 if (!dbh) { in ZEND_DECLARE_MODULE_GLOBALS()
72 if (dbh->driver != &pdo_mysql_driver) { in ZEND_DECLARE_MODULE_GLOBALS()
73 …L TSRMLS_CC, E_WARNING, "Provided PDO instance is not using MySQL but %s", dbh->driver->driver_nam… in ZEND_DECLARE_MODULE_GLOBALS()
77 return ((pdo_mysql_db_handle *)dbh->driver_data)->server; in ZEND_DECLARE_MODULE_GLOBALS()
/PHP-5.5/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h86 extern int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *sqlstate, co…
88 #define pdo_pgsql_error_stmt(s,e,z) _pdo_pgsql_error(s->dbh, s, e, z, __FILE__, __LINE__ TSRMLS_CC)
99 pdo_dbh_t *dbh; member

Completed in 72 milliseconds

123