Lines Matching refs:link
14 mysqli_query($link, '');
19 if (false !== ($tmp = mysqli_query($link, 'THIS IS NOT SQL')))
22 if (false !== ($tmp = mysqli_query($link, "SELECT 'this is sql but with backslash g'\g")))
25 if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
28 if (!$res = mysqli_query($link, "SELECT 'this is sql but with semicolon' AS valid ; "))
29 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 if (!$res = mysqli_query($link, "SELECT 'a' AS ''"))
35 printf("[007a] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
41 …if (false !== ($res = mysqli_query($link, 'SELECT "this is sql but with semicolon" AS valid ; SHOW…
42 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 if (mysqli_get_server_version($link) > 50000) {
46 mysqli_query($link, 'DROP PROCEDURE IF EXISTS p');
47 …if (mysqli_query($link, 'CREATE PROCEDURE p(OUT ver_param VARCHAR(25)) BEGIN SELECT VERSION() INTO…
48 mysqli_query($link, 'CALL p(@version)');
49 $res = mysqli_query($link, 'SELECT @version AS p_version');
53 … printf("[008a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
59 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 mysqli_query($link, 'DROP FUNCTION IF EXISTS f');
63 …if (mysqli_query($link, 'CREATE FUNCTION f( ver_param VARCHAR(25)) RETURNS VARCHAR(25) DETERMINIST…
64 $res = mysqli_query($link, 'SELECT f(VERSION()) AS f_version');
68 … printf("[009a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
74 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
78 … if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_USE_RESULT)))
79 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
82 …if (!is_object($res = mysqli_query($link, "SELECT id FROM test ORDER BY id", MYSQLI_STORE_RESULT)))
83 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
87 mysqli_query($link, "SELECT id FROM test ORDER BY id", 1234);
92 mysqli_close($link);
95 mysqli_query($link, "SELECT id FROM test");
105 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
108 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
109 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
111 @mysqli_query($link, "DROP FUNCTION IF EXISTS f");
112 @mysqli_query($link, 'DROP PROCEDURE IF EXISTS p');
114 mysqli_close($link);