Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 25 of 135) sorted by relevance

123456

/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_commands.c46 conn); in MYSQLND_METHOD()
49 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
72 conn); in MYSQLND_METHOD()
75 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
102 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
138 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
206 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
217 conn->m->send_close(conn); in MYSQLND_METHOD()
246 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
432 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_connection.c319 conn->m->free_contents(conn); in MYSQLND_METHOD_PRIVATE()
320 conn->m->free_options(conn); in MYSQLND_METHOD_PRIVATE()
333 mysqlnd_vio_free(conn->vio, conn->stats, conn->error_info); in MYSQLND_METHOD_PRIVATE()
346 mnd_pefree(conn, conn->persistent); in MYSQLND_METHOD_PRIVATE()
506 …if (PASS == conn->vio->data->m.connect(conn->vio, *scheme, conn->persistent, conn->stats, conn->er… in MYSQLND_METHOD()
588 conn->m->send_close(conn);
591 conn->m->free_contents(conn);
742 conn->m->free_contents(conn);
1138 conn->m->dtor(conn);
1321 conn->m->send_close(conn);
[all …]
H A Dmysqlnd.h72 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data) argument
110 #define mysqlnd_close(conn,is_forced) (conn)->m->close((conn), (is_forced)) argument
117 #define mysqlnd_use_result(conn) ((conn)->data)->m->use_result((conn)->data) argument
118 #define mysqlnd_store_result(conn) ((conn)->data)->m->store_result((conn)->data) argument
119 #define mysqlnd_next_result(conn) ((conn)->data)->m->next_result((conn)->data) argument
125 #define mysqlnd_errno(conn) ((conn)->data)->m->get_error_no((conn)->data) argument
126 #define mysqlnd_error(conn) ((conn)->data)->m->get_error_str((conn)->data) argument
127 #define mysqlnd_sqlstate(conn) ((conn)->data)->m->get_sqlstate((conn)->data) argument
137 #define mysqlnd_info(conn) ((conn)->data)->m->get_last_message((conn)->data) argument
142 #define mysqlnd_thread_id(conn) ((conn)->data)->m->get_thread_id((conn)->data) argument
[all …]
H A Dmysqlnd_loaddata.c151 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile()
198 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
203 infile = conn->infile; in mysqlnd_handle_local_infile()
218 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
224 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
232 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
253 conn->payload_decoder_factory, in mysqlnd_handle_local_infile()
255 conn->error_info, in mysqlnd_handle_local_infile()
256 conn->upsert_status, in mysqlnd_handle_local_infile()
257 &conn->last_message)) { in mysqlnd_handle_local_infile()
[all …]
H A Dmysqlnd_auth.c104conn->authentication_plugin_data.s = mnd_pemalloc(conn->authentication_plugin_data.l, conn->persis… in mysqlnd_run_authentication()
160 conn->m->set_client_option(conn, MYSQLND_OPT_AUTH_PROTOCOL, requested_protocol); in mysqlnd_run_authentication()
428 if (conn->m->get_server_version(conn) >= 50123) { in mysqlnd_auth_change_user()
480 if (conn->m->get_server_version(conn) > 50113L &&conn->m->get_server_version(conn) < 50118L) { in mysqlnd_auth_change_user()
490 ZEND_ASSERT(conn->username.s != user && conn->password.s != passwd); in mysqlnd_auth_change_user()
491 mysqlnd_set_persistent_string(&conn->username, user, user_len, conn->persistent); in mysqlnd_auth_change_user()
492 mysqlnd_set_persistent_string(&conn->password, passwd, passwd_len, conn->persistent); in mysqlnd_auth_change_user()
497 if (conn->m->get_server_version(conn) < 50123) { in mysqlnd_auth_change_user()
498 ret = conn->m->set_charset(conn, old_cs->name); in mysqlnd_auth_change_user()
912 if (conn->vio->data->ssl) { in mysqlnd_sha256_auth_get_auth_data()
[all …]
H A Dmysqlnd_result.c116 if (result->conn) { in MYSQLND_METHOD()
117 result->conn->m->free_reference(result->conn); in MYSQLND_METHOD()
118 result->conn = NULL; in MYSQLND_METHOD()
303 conn->current_result->m.free_result(conn->current_result, TRUE); in mysqlnd_query_read_result_set_header()
417 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
514 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
563 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
756 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
798 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
975 MYSQLND_CONN_DATA *conn = result->conn; in MYSQLND_METHOD() local
[all …]
H A Dmysqlnd_ps.c43 MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_send_cursor_fetch_command() local
59 const MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_check_state() local
76 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
146 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
214 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
452 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
525 stmt->result->conn = conn->m->get_reference(conn); in mysqlnd_stmt_execute_parse_response()
761 MYSQLND_CONN_DATA * conn = stmt->conn; in mysqlnd_fetch_stmt_row_cursor() local
767 if (!stmt->conn || !result->conn) { in mysqlnd_fetch_stmt_row_cursor()
918 MYSQLND_CONN_DATA * conn = stmt->conn; in MYSQLND_METHOD() local
[all …]
/PHP-8.4/ext/pgsql/tests/
H A Dpg_delete_001.phpt14 $conn = pg_connect($conn_str);
16 pg_query($conn, "CREATE SCHEMA {$schema_name}");
21 pg_insert($conn, $table_name, array('id' => 1, 'id2' => 1));
22 pg_insert($conn, $table_name, array('id' => 1, 'id2' => 2));
23 pg_insert($conn, $table_name, array('id' => 1, 'id2' => 2));
24 pg_insert($conn, $table_name, array('id' => 3, 'id2' => 3));
31 pg_delete($conn, $table_name, array('id' => 1, 'id2' => 0));
43 pg_delete($conn, 'bar', array('id' => 1, 'id2' => 2));
53 $conn = pg_connect($conn_str);
55 pg_query($conn, "DROP TABLE IF EXISTS {$table_name}");
[all …]
H A Dpg_select_001.phpt13 $conn = pg_connect($conn_str);
15 pg_query($conn, "CREATE SCHEMA {$schema_name}");
18 pg_query($conn, "INSERT INTO {$schema_name}.foo VALUES (1,2)");
19 pg_query($conn, "INSERT INTO {$schema_name}.foo VALUES (2,3)");
26 var_dump(pg_select($conn, 'foo', array('id' => 1)));
41 var_dump(pg_select($conn, "{$schema_name}.bar", array()));
44 var_dump(pg_select($conn, "{$schema_name}.bar"));
52 $conn = pg_connect($conn_str);
54 pg_query($conn, "DROP TABLE IF EXISTS {$schema_name}.foo");
55 pg_query($conn, "DROP TABLE IF EXISTS {$schema_name}.bar");
[all …]
H A Dpg_update_001.phpt14 $conn = pg_connect($conn_str);
16 pg_query($conn, "CREATE SCHEMA {$schema_name}");
18 pg_query($conn, "CREATE TABLE {$table_name} (id INT, id2 INT)");
19 pg_query($conn, "CREATE TABLE {$schema_name}.{$table_name} (id INT, id2 INT)");
22 pg_insert($conn, $table_name, array('id' => 1, 'id2' => 1));
23 pg_insert($conn, "{$schema_name}.{$table_name}", array('id' => 1, 'id2' => 2));
25 pg_update($conn, $table_name, array('id' => 10), array('id' => 1));
43 $conn = pg_connect($conn_str);
45 pg_query($conn, "DROP TABLE IF EXISTS {$table_name}");
46 pg_query($conn, "DROP TABLE IF EXISTS {$schema_name}.{$table_name}");
[all …]
H A Dbug68638.phpt12 $conn = pg_connect($conn_str);
16 pg_query($conn, "CREATE TABLE $table (id INT, value FLOAT)");
18 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2));
19 pg_insert($conn,$table, array('id' => 2, 'value' => 10));
20 pg_insert($conn,$table, array('id' => 3, 'value' => 15));
24 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1));
25 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2));
26 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3));
28 $rs = pg_query($conn, "SELECT * FROM $table");
38 $conn = pg_connect($conn_str);
[all …]
H A Dpg_set_chunked_rows_size.phpt16 $conn = pg_connect($conn_str);
17 pg_query($conn, "CREATE TABLE {$table_name} (num int, str text)");
20 pg_query($conn, "INSERT INTO {$table_name} DEFAULT VALUES");
22 var_dump(pg_send_query($conn, "SELECT * FROM ".$table_name.";"));
24 pg_set_chunked_rows_size($conn, -1);
29 var_dump(pg_set_chunked_rows_size($conn, 1));
30 $result = pg_get_result($conn);
33 var_dump(pg_set_chunked_rows_size($conn, 10));
40 $conn = pg_connect($conn_str);
41 pg_query($conn, "DROP TABLE IF EXISTS {$table_name}");
H A Dpg_insert_001.phpt14 $conn = pg_connect($conn_str);
16 pg_query($conn, "CREATE SCHEMA {$schema_name}");
17 pg_query($conn, "CREATE TABLE {$schema_name}.{$table_name} (id INT, id2 INT)");
20 pg_insert($conn, $table_name, array('id' => 1, 'id2' => 1));
22 pg_insert($conn, "{$schema_name}.{$table_name}", array('id' => 1, 'id2' => 2));
24 var_dump(pg_insert($conn, "{$schema_name}.{$table_name}", array('id' => 1, 'id2' => 2), PGSQL_DML_S…
26 var_dump(pg_select($conn, "{$schema_name}.{$table_name}", array('id' => 1)));
35 $conn = pg_connect($conn_str);
36 pg_query($conn, "DROP TABLE IF EXISTS {$schema_name}.{$table_name}");
37 pg_query($conn, "DROP SCHEMA IF EXISTS {$schema_name}");
/PHP-8.4/ext/odbc/tests/
H A Dodbc_connect_001.phpt23 echo $conn ? "Connected.\n\n" : "";
24 if ($conn) odbc_close($conn);
28 echo $conn ? "Connected.\n\n" : "";
29 if ($conn) odbc_close($conn);
33 echo $conn ? "Connected.\n\n" : "";
34 if ($conn) odbc_close($conn);
38 echo $conn ? "Connected.\n\n" : "";
39 if ($conn) odbc_close($conn);
44 if ($conn) odbc_close($conn);
48 echo $conn ? "Connected.\n" : "";
[all …]
H A Dodbc_primarykeys_001.phpt9 $conn = odbc_connect($dsn, $user, $pass);
10 $result = @odbc_exec($conn, "SELECT @@Version");
25 $conn = odbc_connect($dsn, $user, $pass);
26 odbc_exec($conn, 'CREATE DATABASE PrimarykeysTest');
27 odbc_exec($conn, 'USE PrimarykeysTest');
44 $res = odbc_primarykeys($conn, null, "dbo", "primarykeys");
56 $conn = odbc_connect($dsn, $user, $pass);
57 odbc_exec($conn, 'USE PrimarykeysTest');
58 odbc_exec($conn, 'DROP TABLE primarykeys');
59 odbc_exec($conn, 'USE master');
[all …]
H A Dodbc_commit_001.phpt12 $conn = odbc_connect($dsn, $user, $pass);
13 odbc_exec($conn, 'CREATE TABLE commit_table (test INT)');
15 odbc_autocommit($conn, false);
16 odbc_exec($conn, 'INSERT INTO commit_table VALUES(1)');
17 var_dump(odbc_commit($conn));
19 $res = odbc_exec($conn, 'SELECT * FROM commit_table');
26 $conn = odbc_connect($dsn, $user, $pass);
27 odbc_exec($conn, 'DROP TABLE commit_table');
H A Dodbc_rollback_001.phpt12 $conn = odbc_connect($dsn, $user, $pass);
13 odbc_exec($conn, 'CREATE TABLE rollback_table (test INT)');
15 odbc_autocommit($conn, false);
16 odbc_exec($conn, 'INSERT INTO rollback_table VALUES(1)');
17 var_dump(odbc_rollback($conn));
19 $res = odbc_exec($conn, 'SELECT * FROM rollback_table');
26 $conn = odbc_connect($dsn, $user, $pass);
27 odbc_exec($conn, 'DROP TABLE rollback_table');
H A Dodbc_num_rows_001.phpt12 $conn = odbc_connect($dsn, $user, $pass);
14 odbc_exec($conn, 'CREATE TABLE num_rows (test INT)');
15 odbc_exec($conn, 'INSERT INTO num_rows VALUES (1), (2), (3)');
17 $res = odbc_exec($conn, 'SELECT * FROM num_rows');
21 $res = odbc_exec($conn, 'SELECT * FROM num_rows WHERE test = 4');
25 odbc_close($conn);
30 $conn = odbc_connect($dsn, $user, $pass);
31 odbc_exec($conn, 'DROP TABLE num_rows');
H A Dbug71171.phpt12 $conn = odbc_connect($dsn, $user, $pass);
14 odbc_exec($conn, 'CREATE TABLE bug71171 (ID INT, VARCHAR_COL NVARCHAR(40))');
16 odbc_exec($conn, "INSERT INTO bug71171(ID, VARCHAR_COL) VALUES (1, '" . chr(0x81) . "')");
18 $res = odbc_exec($conn,"SELECT ID FROM bug71171 WHERE VARCHAR_COL = '" . chr(0x81) . "'");
23 odbc_close($conn);
29 $conn = odbc_connect($dsn, $user, $pass);
31 odbc_exec($conn, 'DROP TABLE bug71171');
33 odbc_close($conn);
H A Dodbc_num_fields_001.phpt12 $conn = odbc_connect($dsn, $user, $pass);
14 odbc_exec($conn, 'CREATE TABLE num_fields (foo INT, bar INT, baz INT)');
15 odbc_exec($conn, 'INSERT INTO num_fields VALUES (1, 2, 3)');
17 $res = odbc_exec($conn, 'SELECT * FROM num_fields');
21 $res = odbc_exec($conn, 'SELECT * FROM num_fields WHERE foo = 4');
25 odbc_close($conn);
30 $conn = odbc_connect($dsn, $user, $pass);
31 odbc_exec($conn, 'DROP TABLE num_fields');
H A Dodbc_cursor_001.phpt11 $conn = odbc_connect($dsn, $user, $pass);
13 odbc_exec($conn, "CREATE TABLE cursor_table (id INT, whatever TEXT)");
14 odbc_exec($conn, "INSERT INTO cursor_table VALUES (1, 'whatever')");
15 $res = odbc_exec($conn, 'SELECT * FROM cursor_table');
19 odbc_close($conn);
25 $conn = odbc_connect($dsn, $user, $pass);
26 odbc_exec($conn, "DROP TABLE cursor_table");
H A Dodbc_non_persistent_connection_reuse.phpt16 $conn = odbc_connect($dsn, $user, $pass);
17 $result = @odbc_exec($conn, "SELECT @@Version");
32 function set_context_info($conn, $string) {
37 function fetch_context_info($conn) {
52 $conn = odbc_connect($dsn, $user, $pass);
54 var_dump(fetch_context_info($conn));
57 $conn = odbc_connect($dsn, $user, $pass);
58 var_dump(fetch_context_info($conn));
61 odbc_close($conn);
62 $conn = odbc_connect($dsn, $user, $pass);
[all …]
H A Dodbc_persistent_close.phpt16 $conn = odbc_connect($dsn, $user, $pass);
17 $result = @odbc_exec($conn, "SELECT @@Version");
32 function set_context_info($conn, $string) {
37 function fetch_context_info($conn) {
52 $conn = odbc_pconnect($dsn, $user, $pass);
54 var_dump(fetch_context_info($conn));
57 $conn = odbc_pconnect($dsn, $user, $pass);
58 var_dump(fetch_context_info($conn));
61 odbc_close($conn);
62 $conn = odbc_pconnect($dsn, $user, $pass);
[all …]
H A Dodbc_longreadlen_001.phpt11 $conn = odbc_connect($dsn, $user, $pass);
13 odbc_exec($conn, "CREATE TABLE longreadlen (id INT, whatever VARBINARY(50))");
14 odbc_exec($conn, "INSERT INTO longreadlen VALUES (1, CONVERT(VARBINARY(50), 'whatever'))");
16 $res = odbc_exec($conn, "SELECT * FROM longreadlen");
21 odbc_close($conn);
27 $conn = odbc_connect($dsn, $user, $pass);
28 odbc_exec($conn, "DROP TABLE longreadlen");
/PHP-8.4/ext/mysqli/tests/
H A Dfake_server.inc526 private $conn;
662 $conn->read();
664 $conn->read();
679 $conn->read();
681 $conn->read();
693 $conn->read();
695 $conn->read();
706 $conn->read();
708 $conn->read();
710 $conn->read();
[all …]

Completed in 64 milliseconds

123456