Lines Matching refs:link
9 if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
12 if (mysqli_get_server_version($link) <= 50000) {
13 die(sprintf('skip Needs MySQL 5.0+, found version %d.', mysqli_get_server_version($link)));
20 if (!$link->query('DROP PROCEDURE IF EXISTS p'))
21 printf("[001] [%d] %s\n", $link->errno, $link->error);
23 …if (!$link->query('CREATE PROCEDURE p(IN new_id INT, IN new_label CHAR(1)) BEGIN INSERT INTO test(…
24 printf("[002] [%d] %s\n", $link->errno, $link->error);
29 if (!$stmt = $link->prepare('CALL p(?, ?)'))
30 printf("[003] [%d] %s\n", $link->errno, $link->error);
45 $stmt2 = $link->prepare('SELECT label FROM test WHERE id = ?');
49 $link->errno, $link->error);
66 $link->close();
73 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
76 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
77 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
79 mysqli_query($link, "DROP PROCEDURE IF EXISTS p");
81 mysqli_close($link);