Home
last modified time | relevance | path

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

1234

/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_commands.c47 conn); in MYSQLND_METHOD()
50 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
76 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
103 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
148 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
216 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
227 conn->m->send_close(conn); in MYSQLND_METHOD()
256 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
285 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
471 conn->error_info, conn->upsert_status, &conn->last_message); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_connection.c340 conn->m->free_contents(conn); in MYSQLND_METHOD_PRIVATE()
341 conn->m->free_options(conn); in MYSQLND_METHOD_PRIVATE()
354 mysqlnd_vio_free(conn->vio, conn->stats, conn->error_info); in MYSQLND_METHOD_PRIVATE()
536 …if (PASS == conn->vio->data->m.connect(conn->vio, *scheme, conn->persistent, conn->stats, conn->er… in MYSQLND_METHOD()
618 conn? conn->persistent:0, conn? (int)GET_CONNECTION_STATE(&conn->state):-1);
626 conn->m->send_close(conn);
629 conn->m->free_contents(conn);
800 conn->m->free_contents(conn);
1311 conn->m->dtor(conn);
1506 conn->m->send_close(conn);
[all …]
H A Dmysqlnd.h77 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data) argument
115 #define mysqlnd_close(conn,is_forced) (conn)->m->close((conn), (is_forced)) argument
123 #define mysqlnd_use_result(conn) ((conn)->data)->m->use_result((conn)->data, 0) argument
126 #define mysqlnd_next_result(conn) ((conn)->data)->m->next_result((conn)->data) argument
127 #define mysqlnd_more_results(conn) ((conn)->data)->m->more_results((conn)->data) argument
132 #define mysqlnd_errno(conn) ((conn)->data)->m->get_error_no((conn)->data) argument
133 #define mysqlnd_error(conn) ((conn)->data)->m->get_error_str((conn)->data) argument
134 #define mysqlnd_sqlstate(conn) ((conn)->data)->m->get_sqlstate((conn)->data) argument
144 #define mysqlnd_info(conn) ((conn)->data)->m->get_last_message((conn)->data) argument
149 #define mysqlnd_thread_id(conn) ((conn)->data)->m->get_thread_id((conn)->data) argument
[all …]
H A Dmysqlnd_loaddata.c153 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile()
162 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
167 infile = conn->infile; in mysqlnd_handle_local_infile()
182 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile()
188 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
196 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
217 conn->payload_decoder_factory, in mysqlnd_handle_local_infile()
219 conn->error_info, in mysqlnd_handle_local_infile()
220 conn->upsert_status, in mysqlnd_handle_local_infile()
221 &conn->last_message)) { in mysqlnd_handle_local_infile()
[all …]
H A Dmysqlnd_auth.c103 mnd_pefree(conn->authentication_plugin_data.s, conn->persistent); in mysqlnd_run_authentication()
107conn->authentication_plugin_data.s = mnd_pemalloc(conn->authentication_plugin_data.l, conn->persis… in mysqlnd_run_authentication()
167 conn->m->set_client_option(conn, MYSQLND_OPT_AUTH_PROTOCOL, requested_protocol); in mysqlnd_run_authentication()
435 if (conn->m->get_server_version(conn) >= 50123) { in mysqlnd_auth_change_user()
487 if (conn->m->get_server_version(conn) > 50113L &&conn->m->get_server_version(conn) < 50118L) { in mysqlnd_auth_change_user()
500 if (conn->username.s) { in mysqlnd_auth_change_user()
501 mnd_pefree(conn->username.s, conn->persistent); in mysqlnd_auth_change_user()
503 conn->username.s = tmp; in mysqlnd_auth_change_user()
507 mnd_pefree(conn->password.s, conn->persistent); in mysqlnd_auth_change_user()
517 if (conn->m->get_server_version(conn) < 50123) { in mysqlnd_auth_change_user()
[all …]
H A Dmysqlnd_ps.c46 MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_send_cursor_fetch_command() local
62 const MYSQLND_CONN_DATA *conn = stmt->conn; in mysqlnd_stmt_check_state() local
79 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
171 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
239 MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL; in MYSQLND_METHOD() local
432 s_to_prepare = conn->m->stmt_init(conn); in MYSQLND_METHOD()
476 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
569 stmt->result->conn = conn->m->get_reference(conn); in mysqlnd_stmt_execute_parse_response()
832 MYSQLND_CONN_DATA * conn = result->conn; in mysqlnd_stmt_fetch_row_unbuffered() local
1172 MYSQLND_CONN_DATA * conn = stmt->conn; in MYSQLND_METHOD() local
[all …]
H A Dmysqlnd_result.c305 result->conn->m->free_reference(result->conn); in MYSQLND_METHOD()
655 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
787 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
923 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
973 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1067 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1153 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1419 result->conn = conn->m->get_reference(conn); in MYSQLND_METHOD()
1497 MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
1634 const MYSQLND_CONN_DATA * const conn = result->conn; in MYSQLND_METHOD() local
[all …]
H A Dmysqlnd_structs.h322 typedef enum_func_status (*func_mysqlnd_execute_com_ping)(MYSQLND_CONN_DATA * const conn);
327 typedef enum_func_status (*func_mysqlnd_execute_com_quit)(MYSQLND_CONN_DATA * const conn);
459 typedef enum_func_status (*func_mysqlnd_conn_data__ping)(MYSQLND_CONN_DATA * const conn);
491 typedef void (*func_mysqlnd_conn_data__dtor)(MYSQLND_CONN_DATA * conn); /* private */
510 typedef enum_func_status (*func_mysqlnd_conn_data__tx_commit)(MYSQLND_CONN_DATA * conn);
627 typedef MYSQLND * (*func_mysqlnd_conn__clone_object)(MYSQLND * const conn);
628 typedef void (*func_mysqlnd_conn__dtor)(MYSQLND * conn);
1099 MYSQLND_CONN_DATA * conn; member
1269 MYSQLND_CONN_DATA *conn; member
1302 MYSQLND_CONN_DATA *conn; member
[all …]
/PHP-7.4/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);
36 $conn = odbc_connect($dsn, $user, $pass);
38 odbc_exec($conn, 'DROP TABLE FOO');
39 odbc_exec($conn, 'DROP DATABASE odbcTEST');
41 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');
25 odbc_exec($conn, 'DROP TABLE FOO');
27 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 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");
38 $conn = odbc_connect($dsn, $user, $pass);
40 odbc_exec($conn, 'DROP TABLE FOO');
41 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");
49 $conn = odbc_connect($dsn, $user, $pass);
51 odbc_exec($conn, 'DROP TABLE bug73725');
53 odbc_close($conn);
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 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_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');
25 var_dump(odbc_free_result($conn));
30 odbc_exec($conn, 'DROP TABLE FOO');
32 odbc_exec($conn, 'DROP DATABASE odbcTEST');
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 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 Dodbc_data_source_001.phpt6 if (odbc_data_source($conn, SQL_FETCH_FIRST) === NULL) {
15 $conn = odbc_connect($dsn, $user, $pass);
17 var_dump(odbc_data_source($conn, NULL));
18 var_dump(odbc_data_source($conn, ''));
19 var_dump(odbc_data_source($conn, SQL_FETCH_FIRST));
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-7.4/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-7.4/ext/oci8/tests/
H A Ddrcp_functions.inc5 function drcp_create_table($conn)
8 $statement = oci_parse($conn, $create_sql);
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);
[all …]

Completed in 303 milliseconds

1234