Home
last modified time | relevance | path

Searched refs:dbh (Results 1 – 25 of 65) sorted by last modified time

123

/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/pgsql/tests/
H A Dbug46408.phpt15 $dbh = pg_connect($conn_str);
19 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_bug14383.phpt12 $dbh = @pg_connect($conn_str);
13 if (!$dbh) {
16 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 D80_bug32223.phpt26 $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 D80_bug32223b.phpt26 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 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 D80_bug39971.phpt12 $dbh = @pg_connect($conn_str);
13 if (!$dbh) {
20 pg_insert($dbh, 'php_test', $values);
23 pg_update($dbh, 'php_test', $values, $ids);
25 pg_query($dbh, "DROP TABLE php_test");
26 pg_close($dbh);
H A D80_bug42783.phpt12 $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);
/PHP-5.5/ext/pdo_sqlite/
H A Dphp_pdo_sqlite_int.h73 extern int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int line TSRMLS_DC…
75 #define pdo_sqlite_error_stmt(s) _pdo_sqlite_error(stmt->dbh, stmt, __FILE__, __LINE__ TSRMLS_CC)
H A Dsqlite_driver.c80 if (!dbh->methods) { in _pdo_sqlite_error()
192 pdo_sqlite_error(dbh); in sqlite_handle_preparer()
201 pdo_sqlite_error(dbh); in sqlite_handle_preparer()
212 pdo_sqlite_error(dbh); in sqlite_handle_doer()
247 pdo_sqlite_error(dbh); in sqlite_handle_begin()
261 pdo_sqlite_error(dbh); in sqlite_handle_commit()
542 pdo_dbh_t *dbh; in PHP_METHOD() local
613 pdo_dbh_t *dbh; in PHP_METHOD() local
675 pdo_dbh_t *dbh; in PHP_METHOD() local
821 dbh->driver_data = H; in pdo_sqlite_handle_factory()
[all …]
H A Dsqlite_statement.c138 pdo_raise_impl_error(stmt->dbh, stmt, "HY105", "Expected a stream resource" TSRMLS_CC); in pdo_sqlite_stmt_param_hook()
/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_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…
H A Dodbc_driver.c106 if (!dbh->methods) { in pdo_odbc_error()
140 dbh->driver_data = NULL; in odbc_handle_closer()
273 if (dbh->auto_commit) { in odbc_handle_begin()
302 if (dbh->auto_commit) { in odbc_handle_commit()
400 dbh->driver_data = H; in pdo_odbc_handle_factory()
448 if (dbh->username && *dbh->username && !strstr(dbh->data_source, "uid") in pdo_odbc_handle_factory()
451 spprintf(&dsn, 0, "%s;UID=%s;PWD=%s", dbh->data_source, dbh->username, dbh->password); in pdo_odbc_handle_factory()
452 pefree((char*)dbh->data_source, dbh->is_persistent); in pdo_odbc_handle_factory()
453 dbh->data_source = dsn; in pdo_odbc_handle_factory()
460 …rc = SQLConnect(H->dbc, (char*)dbh->data_source, SQL_NTS, dbh->username, SQL_NTS, dbh->password, S… in pdo_odbc_handle_factory()
[all …]
/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
H A Dpgsql_driver.c147 pdo_dbh_t *dbh = self->dbh; in pgsql_lob_close() local
189 self->dbh = dbh; in pdo_pgsql_create_lob_stream()
526 dbh->in_txn = pgsql_handle_in_transaction(dbh TSRMLS_CC); in pgsql_handle_commit()
541 pdo_dbh_t *dbh; in PHP_METHOD() local
649 pdo_dbh_t *dbh; in PHP_METHOD() local
741 pdo_dbh_t *dbh; in PHP_METHOD() local
830 pdo_dbh_t *dbh; in PHP_METHOD() local
903 pdo_dbh_t *dbh; in PHP_METHOD() local
928 pdo_dbh_t *dbh; in PHP_METHOD() local
977 pdo_dbh_t *dbh; in PHP_METHOD() local
[all …]
H A Dpgsql_statement.c264 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", param->name TSRMLS_CC); in pgsql_stmt_param_hook()
298 pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined" TSRMLS_CC); in pgsql_stmt_param_hook()
532 *ptr = (char*)pdo_pgsql_create_lob_stream(stmt->dbh, loid, oid TSRMLS_CC); in pgsql_stmt_get_col()
/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_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…
H A Doci_statement.c39 …S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name, S->last_err, FALSE, __FILE__, __LINE__ TS…
48 …S->last_err = _oci_error(S->err, stmt->dbh, stmt, #name ": " #msg, S->last_err, FALSE, __FILE__, _…
92 pefree(S->einfo.errmsg, stmt->dbh->is_persistent); in oci_stmt_dtor()
140 if (stmt->dbh->auto_commit && !stmt->dbh->in_txn) { in oci_stmt_execute()
/PHP-5.5/ext/pdo_oci/tests/
H A Dpdo_oci_attr_nulls_1.phpt14 function do_query($dbh)
16 var_dump($dbh->getAttribute(PDO::ATTR_ORACLE_NULLS));
17 $s = $dbh->prepare("select '' as myempty, null as mynull from dual");
25 $dbh = PDOTest::factory();
28 do_query($dbh);
31 $dbh->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_NATURAL); // No conversion.
33 do_query($dbh);
36 $dbh->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_EMPTY_STRING); // Empty string is converted to…
38 do_query($dbh);
41 $dbh->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_TO_STRING); // NULL is converted to an empty s…
[all …]
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);

Completed in 69 milliseconds

123