Lines Matching refs:link
14 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
17 if (!$res = mysqli_query($link, "SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'"))
18 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 if (!mysqli_query($link, "SET GLOBAL max_allowed_packet = " . ($max_len + 100))) {
31 if (1227 == mysqli_errno($link)) {
36 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 mysqli_close($link);
41 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
44 if (!mysqli_query($link, "SET NAMES 'latin1'"))
47 if (!$res = mysqli_query($link, "SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'"))
48 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
64 if (!mysqli_query($link, "DROP TABLE IF EXISTS {$table_name}")) {
65 …printf("[012] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
68 if (!mysqli_query($link, "CREATE TABLE {$table_name}(col_blob LONGBLOB) ENGINE=" . $engine))
69 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
80 if (!mysqli_query($link, $query))
81 …) = %d, [%d] %s\n", $max_allowed_packet, strlen($query), mysqli_errno($link), mysqli_error($link));
83 if (!$res = mysqli_query($link, "SELECT col_blob FROM {$table_name}"))
84 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
87 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
97 if (!mysqli_query($link, "SET GLOBAL max_allowed_packet = " . $org_max_allowed_packet))
98 if (1227 != mysqli_errno($link))
99 printf("[018] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
101 mysqli_close($link);
108 $link = new mysqli($host, $user, $passwd, $db, $port, $socket);
109 $link->query('DROP TABLE test__mysqli_insert_packet_overflow');
110 $link->close();