Lines Matching refs:link
13 if (false !== ($tmp = mysqli_real_query($link, 'THIS IS NOT SQL')))
16 if (false !== ($tmp = mysqli_real_query($link, "SELECT 'this is sql but with backslash g'\g")))
19 if ((0 === mysqli_errno($link)) || ('' == mysqli_error($link)))
22 if (!mysqli_real_query($link, "SELECT 'this is sql but with semicolon' AS valid ; "))
23 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 if (!is_object($res = mysqli_use_result($link)))
26 …seult object, got %s/%s [%d] %s\n", gettype($res), $res, mysqli_errno($link), mysqli_error($link));
31 …if (false !== ($res = mysqli_real_query($link, "SELECT 'this is sql but with semicolon' AS valid ;…
33 mysqli_errno($link), mysqli_error($link));
35 if (mysqli_get_server_version($link) > 50000) {
37 mysqli_real_query($link, 'DROP PROCEDURE IF EXISTS p');
38 …if (mysqli_real_query($link, 'CREATE PROCEDURE p(OUT ver_param VARCHAR(25)) BEGIN SELECT VERSION()…
40 mysqli_real_query($link, 'CALL p(@version)');
41 mysqli_real_query($link, 'SELECT @version AS p_version');
42 $res = mysqli_store_result($link);
46 … printf("[008a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 mysqli_real_query($link, 'DROP FUNCTION IF EXISTS f');
55 …if (mysqli_real_query($link, 'CREATE FUNCTION f( ver_param VARCHAR(25)) RETURNS VARCHAR(25) DETERM…
57 mysqli_real_query($link, 'SELECT f(VERSION()) AS f_version');
58 $res = mysqli_store_result($link);
62 … printf("[009a] Expecting array [%d] %s\n", mysqli_errno($link), mysqli_error($link));
68 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
72 mysqli_close($link);
75 mysqli_real_query($link, "SELECT id FROM test");
85 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
88 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
89 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
91 @mysqli_query($link, "DROP PROCEDURE IF EXISTS p");
92 @mysqli_query($link, "DROP FUNCTION IF EXISTS f");
94 mysqli_close($link);