Home
last modified time | relevance | path

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

1234

/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_commands.c45 conn); in MYSQLND_METHOD()
48 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
74 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
101 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
146 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
214 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
225 conn->m->send_close(conn); in MYSQLND_METHOD()
254 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
283 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
469 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_connection.c338 conn->m->free_contents(conn); in MYSQLND_METHOD_PRIVATE()
339 conn->m->free_options(conn); in MYSQLND_METHOD_PRIVATE()
352 mysqlnd_vio_free(conn->vio, conn->stats, conn->error_info); in MYSQLND_METHOD_PRIVATE()
534 …if (PASS == conn->vio->data->m.connect(conn->vio, *scheme, conn->persistent, conn->stats, conn->er… in MYSQLND_METHOD()
616 conn? conn->persistent:0, conn? (int)GET_CONNECTION_STATE(&conn->state):-1);
624 conn->m->send_close(conn);
627 conn->m->free_contents(conn);
798 conn->m->free_contents(conn);
1306 conn->m->dtor(conn);
1493 conn->m->send_close(conn);
[all …]
H A Dmysqlnd.h71 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data) argument
109 #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, 0) argument
120 #define mysqlnd_next_result(conn) ((conn)->data)->m->next_result((conn)->data) argument
121 #define mysqlnd_more_results(conn) ((conn)->data)->m->more_results((conn)->data) argument
126 #define mysqlnd_errno(conn) ((conn)->data)->m->get_error_no((conn)->data) argument
127 #define mysqlnd_error(conn) ((conn)->data)->m->get_error_str((conn)->data) argument
128 #define mysqlnd_sqlstate(conn) ((conn)->data)->m->get_sqlstate((conn)->data) argument
138 #define mysqlnd_info(conn) ((conn)->data)->m->get_last_message((conn)->data) argument
143 #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()
160 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
165 infile = conn->infile; in mysqlnd_handle_local_infile()
180 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
186 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
194 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
215 conn->payload_decoder_factory, in mysqlnd_handle_local_infile()
217 conn->error_info, in mysqlnd_handle_local_infile()
218 conn->upsert_status, in mysqlnd_handle_local_infile()
219 &conn->last_message)) { in mysqlnd_handle_local_infile()
[all …]
H A Dmysqlnd_auth.c101 mnd_pefree(conn->authentication_plugin_data.s, conn->persistent); in mysqlnd_run_authentication()
105conn->authentication_plugin_data.s = mnd_pemalloc(conn->authentication_plugin_data.l, conn->persis… in mysqlnd_run_authentication()
165 conn->m->set_client_option(conn, MYSQLND_OPT_AUTH_PROTOCOL, requested_protocol); in mysqlnd_run_authentication()
433 if (conn->m->get_server_version(conn) >= 50123) { in mysqlnd_auth_change_user()
485 if (conn->m->get_server_version(conn) > 50113L &&conn->m->get_server_version(conn) < 50118L) { in mysqlnd_auth_change_user()
498 if (conn->username.s) { in mysqlnd_auth_change_user()
499 mnd_pefree(conn->username.s, conn->persistent); in mysqlnd_auth_change_user()
501 conn->username.s = tmp; in mysqlnd_auth_change_user()
505 mnd_pefree(conn->password.s, conn->persistent); in mysqlnd_auth_change_user()
515 if (conn->m->get_server_version(conn) < 50123) { in mysqlnd_auth_change_user()
[all …]
H A Dmysqlnd_ps.c43 MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_send_cursor_fetch_command() local
50 if (conn->command->stmt_fetch(conn, payload) == FAIL) { in mysqlnd_stmt_send_cursor_fetch_command()
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
168 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
236 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
474 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
547 stmt->result->conn = conn->m->get_reference(conn); in mysqlnd_stmt_execute_parse_response()
830 MYSQLND_CONN_DATA * conn = result->conn; in mysqlnd_stmt_fetch_row_unbuffered() local
1170 MYSQLND_CONN_DATA * conn = stmt->conn; in MYSQLND_METHOD() local
[all …]
H A Dmysqlnd_result.c303 result->conn->m->free_reference(result->conn); in MYSQLND_METHOD()
653 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
785 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
921 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
971 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1065 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1151 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1417 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
1495 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1632 const MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
[all …]
H A Dmysqlnd_structs.h320 typedef enum_func_status (*func_mysqlnd_execute_com_ping)(MYSQLND_CONN_DATA * const conn);
325 typedef enum_func_status (*func_mysqlnd_execute_com_quit)(MYSQLND_CONN_DATA * const conn);
457 typedef enum_func_status (*func_mysqlnd_conn_data__ping)(MYSQLND_CONN_DATA * const conn);
489 typedef void (*func_mysqlnd_conn_data__dtor)(MYSQLND_CONN_DATA * conn); /* private */
508 typedef enum_func_status (*func_mysqlnd_conn_data__tx_commit)(MYSQLND_CONN_DATA * conn);
625 typedef MYSQLND * (*func_mysqlnd_conn__clone_object)(MYSQLND * const conn);
626 typedef void (*func_mysqlnd_conn__dtor)(MYSQLND * conn);
1097 MYSQLND_CONN_DATA * conn; member
1267 MYSQLND_CONN_DATA *conn; member
1300 MYSQLND_CONN_DATA *conn; member
[all …]
/PHP-8.0/ext/odbc/tests/
H A Dbug71171.phpt10 $conn = odbc_connect($dsn, $user, $pass);
12 @odbc_exec($conn, 'CREATE DATABASE odbcTEST');
14 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL NVARCHAR(40))');
16 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL) VALUES (1, '" . chr(0x81) . "')");
18 $res = odbc_exec($conn,"SELECT ID FROM FOO WHERE VARCHAR_COL = '" . chr(0x81) . "'");
23 odbc_close($conn);
34 $conn = odbc_connect($dsn, $user, $pass);
36 odbc_exec($conn, 'DROP TABLE FOO');
37 odbc_exec($conn, 'DROP DATABASE odbcTEST');
39 odbc_close($conn);
H A Dodbc_exec_002.phpt10 $conn = odbc_connect($dsn, $user, $pass);
12 odbc_exec($conn, 'CREATE DATABASE odbcTEST');
14 odbc_exec($conn, 'CREATE TABLE FOO (TEST INT)');
16 odbc_exec($conn, 'INSERT INTO FOO VALUES (1)');
17 odbc_exec($conn, 'INSERT INTO FOO VALUES (2)');
19 $res = odbc_exec($conn, 'SELECT * FROM FOO');
28 $conn = odbc_connect($dsn, $user, $pass);
29 odbc_exec($conn, 'DROP TABLE FOO');
30 odbc_exec($conn, 'DROP DATABASE odbcTEST');
H A Dbug69975.phpt9 $conn = odbc_connect($dsn, $user, $pass);
10 @odbc_exec($conn, 'CREATE DATABASE odbcTEST');
11 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL NVARCHAR(MAX))');
12 odbc_exec($conn, "INSERT INTO FOO VALUES (1, 'foo')");
14 $result = odbc_exec($conn, "SELECT VARCHAR_COL FROM FOO");
29 $conn = odbc_connect($dsn, $user, $pass);
30 odbc_exec($conn, 'DROP TABLE FOO');
31 odbc_exec($conn, 'DROP DATABASE odbcTEST');
H A Dodbc_free_result_001.phpt10 $conn = odbc_connect($dsn, $user, $pass);
12 odbc_exec($conn, 'CREATE DATABASE odbcTEST');
14 odbc_exec($conn, 'CREATE TABLE FOO (TEST INT NOT NULL)');
15 odbc_exec($conn, 'ALTER TABLE FOO ADD PRIMARY KEY (TEST)');
17 odbc_exec($conn, 'INSERT INTO FOO VALUES (1)');
18 odbc_exec($conn, 'INSERT INTO FOO VALUES (2)');
20 $res = odbc_exec($conn, 'SELECT * FROM FOO');
26 var_dump(odbc_free_result($conn));
44 $conn = odbc_connect($dsn, $user, $pass);
45 odbc_exec($conn, 'DROP TABLE FOO');
[all …]
H A Dbug69354.phpt10 $conn = odbc_connect($dsn, $user, $pass);
12 @odbc_exec($conn, 'CREATE DATABASE odbcTEST');
14 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL VARCHAR(100))');
16 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL) VALUES (1, '" . str_repeat("a", 100) . "')");
18 $res = odbc_exec($conn,"select VARCHAR_COL from FOO");
36 $conn = odbc_connect($dsn, $user, $pass);
38 odbc_exec($conn, 'DROP TABLE FOO');
39 odbc_exec($conn, 'DROP DATABASE odbcTEST');
H A Dbug73725.phpt10 $conn = odbc_connect($dsn, $user, $pass);
12 odbc_do($conn, "CREATE TABLE bug73725(i int, txt varchar(max), k int)");
14 odbc_do($conn, "INSERT INTO bug73725 VALUES(101,'Any text', 33)");
15 odbc_do($conn, "INSERT INTO bug73725 VALUES(102,'Müsliriegel', 34)");
17 $rc = odbc_do($conn, "SELECT i, txt, k FROM bug73725");
47 $conn = odbc_connect($dsn, $user, $pass);
49 odbc_exec($conn, 'DROP TABLE bug73725');
51 odbc_close($conn);
H A Dbug68087.phpt13 $conn = odbc_connect($dsn, $user, $pass);
15 @odbc_exec($conn, 'CREATE DATABASE odbcTEST');
17 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, VARCHAR_COL VARCHAR(100), DATE_COL DATE)');
19 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL, DATE_COL) VALUES (1, 'hello', '$id_1_date')");
20 odbc_exec($conn, "INSERT INTO FOO(ID, VARCHAR_COL, DATE_COL) VALUES (2, 'helloagain', '$id_2_date')…
22 $res = odbc_exec($conn, 'SELECT * FROM FOO ORDER BY ID ASC');
52 $conn = odbc_connect($dsn, $user, $pass);
54 odbc_exec($conn, 'DROP TABLE FOO');
55 odbc_exec($conn, 'DROP DATABASE odbcTEST');
H A Dodbc_exec_001.phpt15 $conn = odbc_connect($dsn, $user, $pass);
17 odbc_exec($conn, 'foo', 'bar');
18 odbc_exec($conn, 'foo');
20 odbc_exec($conn, '', '');
21 odbc_exec($conn, '');
23 odbc_exec($conn, 1, 1);
24 odbc_exec($conn, 1);
26 odbc_exec($conn, NULL, NULL);
27 odbc_exec($conn, NULL);
H A Dbug80147.phpt9 $conn = odbc_connect($dsn, $user, $pass);
11 odbc_exec($conn, "CREATE TABLE bug80147 (id INT, whatever VARBINARY(50))");
12 odbc_exec($conn, "INSERT INTO bug80147 VALUES (1, CONVERT(VARBINARY(50), 'whatever'))");
14 $res = odbc_exec($conn, "SELECT * FROM bug80147");
23 $conn = odbc_connect($dsn, $user, $pass);
24 odbc_exec($conn, "DROP TABLE bug80147");
H A Dbug80592.phpt9 $conn = odbc_connect($dsn, $user, $pass);
10 odbc_exec($conn,"CREATE TABLE bug80592 (f1 float not null, f2 float not null, f3 float not null)");
11 $stmt = odbc_prepare($conn, "INSERT INTO bug80592 (f1, f2, f3) values (?, ?, ?)");
13 $res = odbc_exec($conn, "SELECT f1, f2, f3 from bug80592");
20 $conn = odbc_connect($dsn, $user, $pass);
21 odbc_exec($conn, "DROP TABLE bug80592");
H A Dbug44618.phpt8 $conn = odbc_connect($dsn, $user, $pass, SQL_CUR_USE_ODBC);
10 odbc_exec($conn, "CREATE TABLE bug44618(ID INT, real1 REAL, text1 TEXT)");
11 odbc_exec($conn, "INSERT INTO bug44618 VALUES (1, 10.0199995, 'testing 1,2,3')");
13 $result = odbc_exec($conn, "SELECT * FROM bug44618");
17 $result = odbc_exec($conn, "SELECT * FROM bug44618");
22 $result = odbc_exec($conn, "SELECT * FROM bug44618");
27 $result = odbc_exec($conn, "SELECT * FROM bug44618");
34 $conn = odbc_connect($dsn, $user, $pass);
35 odbc_exec($conn, "DROP TABLE bug44618");
H A Dbug80152.phpt9 $conn = odbc_connect($dsn, $user, $pass);
10 odbc_exec($conn,"CREATE TABLE bug80152 (id INT, name CHAR(24))");
11 $stmt = odbc_prepare($conn,"INSERT INTO bug80152 (id, name) VALUES (?, ?)");
21 $conn = odbc_connect($dsn, $user, $pass);
22 odbc_exec($conn, "DROP TABLE bug80152");
H A Dbug60616.phpt22 $conn = odbc_connect($dsn, $user, $pass);
24 odbc_exec($conn, 'CREATE DATABASE odbcTEST ENCODING=\'EUC_JP\'');
26 odbc_exec($conn, 'CREATE TABLE FOO (ID INT, CHAR_COL CHAR(200), VARCHAR_COL VARCHAR(200), TEXT_COL …
28 odbc_exec($conn, "INSERT INTO FOO(ID, CHAR_COL, VARCHAR_COL, TEXT_COL) VALUES (1, '$euc_jp', '$euc_…
29 odbc_exec($conn, "INSERT INTO FOO(ID, CHAR_COL, VARCHAR_COL, TEXT_COL) VALUES (2, '$ascii', '$ascii…
31 $res = odbc_exec($conn, 'SELECT * FROM FOO ORDER BY ID ASC');
69 $conn = odbc_connect($dsn, $user, $pass);
71 odbc_exec($conn, 'DROP TABLE FOO');
72 odbc_exec($conn, 'DROP DATABASE odbcTEST');
/PHP-8.0/ext/pgsql/tests/
H A Dpg_delete_001.phpt10 $conn = pg_connect($conn_str);
17 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 1));
18 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
19 pg_insert($conn, 'foo', array('id' => 1, 'id2' => 2));
20 pg_insert($conn, 'foo', array('id' => 3, 'id2' => 3));
22 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 1));
23 pg_insert($conn, 'phptests.foo', array('id' => 1, 'id2' => 2));
24 pg_insert($conn, 'phptests.foo', array('id' => 2, 'id2' => 3));
27 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 0));
28 pg_delete($conn, 'foo', array('id' => 1, 'id2' => 2));
[all …]
H A Dbug68638.phpt10 $conn = pg_connect($conn_str);
16 pg_insert($conn,$table, array('id' => 1, 'value' => 1.2));
17 pg_insert($conn,$table, array('id' => 2, 'value' => 10));
18 pg_insert($conn,$table, array('id' => 3, 'value' => 15));
20 var_dump(pg_update($conn,$table, array('value' => 'inf'), array('id' => 1), PGSQL_DML_STRING));
22 pg_update($conn,$table, array('value' => 'inf'), array('id' => 1));
23 pg_update($conn,$table, array('value' => '-inf'), array('id' => 2));
24 pg_update($conn,$table, array('value' => '+inf'), array('id' => 3));
H A Dbug81720.phpt9 $conn = pg_connect($conn_str);
12 pg_query_params($conn, 'SELECT $1, $2', [1, new stdClass()]);
18 pg_send_prepare($conn, "my_query", 'SELECT $1, $2');
19 pg_get_result($conn);
20 pg_send_execute($conn, "my_query", [1, new stdClass()]);
/PHP-8.0/ext/oci8/tests/
H A Ddrcp_functions.inc5 function drcp_create_table($conn)
18 $s = oci_parse($conn, $insert);
23 function drcp_drop_table($conn)
30 function drcp_update_table($conn)
33 $s1 = oci_parse($conn,$update_stmt);
38 function drcp_select_value($conn)
41 $s2 = oci_parse($conn,$sel_stmt);
48 function drcp_select_packagevar($conn)
51 $s2 = oci_parse($conn, $sel_stmt);
60 function drcp_set_packagevar($conn,$num)
[all …]

Completed in 65 milliseconds

1234