Lines Matching refs:link
9 if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
13 if (!$res = mysqli_query($link, "SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'"))
14 die(sprintf("SKIP [%d] %s\n", mysqli_errno($link), mysqli_error($link)));
16 if (!mysqli_query($link, "SET NAMES 'latin1'"))
17 die(sprintf("SKIP [%d] %s\n", mysqli_errno($link), mysqli_error($link)));
19 mysqli_close($link);
26 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
29 if (!$res = mysqli_query($link, "SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'"))
30 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 if (!mysqli_query($link, "SET GLOBAL max_allowed_packet = " . ($max_len + 100))) {
43 if (1227 == mysqli_errno($link)) {
48 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 mysqli_close($link);
53 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
56 if (!mysqli_query($link, "SET NAMES 'latin1'"))
59 if (!$res = mysqli_query($link, "SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'"))
60 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
63 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
76 if (!mysqli_query($link, "DROP TABLE IF EXISTS {$table_name}")) {
77 …printf("[012] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
80 if (!mysqli_query($link, "CREATE TABLE {$table_name}(col_blob LONGBLOB) ENGINE=" . $engine))
81 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
92 if (!mysqli_query($link, $query))
93 …) = %d, [%d] %s\n", $max_allowed_packet, strlen($query), mysqli_errno($link), mysqli_error($link));
95 if (!$res = mysqli_query($link, "SELECT col_blob FROM {$table_name}"))
96 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
99 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
109 if (!mysqli_query($link, "SET GLOBAL max_allowed_packet = " . $org_max_allowed_packet))
110 if (1227 != mysqli_errno($link))
111 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
113 mysqli_close($link);
120 $link = new mysqli($host, $user, $passwd, $db, $port, $socket);
121 $link->query('DROP TABLE test__mysqli_insert_packet_overflow');
122 $link->close();