Lines Matching refs:link
24 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
32 list($old_max_allowed_packet) = $link->query("SELECT @@max_allowed_packet")->fetch_row();
33 if (!$link->query("SET GLOBAL max_allowed_packet=(2<<29)")) {
34 if (1227 == mysqli_errno($link)) {
39 …ed to set max_allowed_packet the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 mysqli_close($link);
45 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
51 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
52 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
60 $link->query("CREATE TABLE test(" . implode(" , ", $str) . ") ENGINE=MyISAM");
61 if (mysqli_errno($link)) {
62 printf("Failed to create the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
65 $stmt = $link->prepare("INSERT INTO test VALUES(".str_repeat("?, ", $cols-1) . "?)");
86 if (!$link->query("SET GLOBAL max_allowed_packet=$old_max_allowed_packet")) {
87 if (1227 != mysqli_errno($link))
88 …ed to set max_allowed_packet the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
91 mysqli_close($link);