Lines Matching refs:link
14 $link = NULL;
92 …function func_mysqli_fetch_all_oo($link, $engine, $sql_type, $sql_value, $php_value, $offset, $reg…
94 if (!$link->query("DROP TABLE IF EXISTS test")) {
95 printf("[%04d] [%d] %s\n", $offset, $link->errno, $link->error);
99 …if (!$link->query($sql = sprintf("CREATE TABLE test(id INT NOT NULL, label %s, PRIMARY KEY(id)) EN…
105 if (!$link->query($sql = sprintf("INSERT INTO test(id, label) VALUES (1, NULL)"))) {
106 printf("[%04d] [%d] %s\n", $offset + 1, $link->errno, $link->error);
111 … if (!$link->query($sql = "INSERT INTO test(id, label) VALUES (1, '" . $sql_value . "')")) {
112 printf("[%04ds] [%d] %s - %s\n", $offset + 1, $link->errno, $link->error, $sql);
116 … if (!$link->query($sql = sprintf("INSERT INTO test(id, label) VALUES (1, '%d')", $sql_value))) {
117 printf("[%04di] [%d] %s\n", $offset + 1, $link->errno, $link->error);
123 if (!$res = $link->query("SELECT id, label FROM test")) {
124 printf("[%04d] [%d] %s\n", $offset + 2, $link->errno, $link->error);
129 printf("[%04d] [%d] %s\n", $offset + 3, $link->errno, $link->error);
142 gettype($row['label']), $row['label'], $link->errno, $link->error);
150 gettype($row['label']), $row['label'], $link->errno, $link->error);
168 func_mysqli_fetch_all_oo($link, $engine, "TINYINT", -11, "-11", 20);
169 func_mysqli_fetch_all_oo($link, $engine, "TINYINT", NULL, NULL, 30);
170 func_mysqli_fetch_all_oo($link, $engine, "TINYINT UNSIGNED", 1, "1", 40);
171 func_mysqli_fetch_all_oo($link, $engine, "TINYINT UNSIGNED", NULL, NULL, 50);
173 func_mysqli_fetch_all_oo($link, $engine, "BOOL", 1, "1", 60);
174 func_mysqli_fetch_all_oo($link, $engine, "BOOL", NULL, NULL, 70);
175 func_mysqli_fetch_all_oo($link, $engine, "BOOLEAN", 0, "0", 80);
176 func_mysqli_fetch_all_oo($link, $engine, "BOOLEAN", NULL, NULL, 90);
178 func_mysqli_fetch_all_oo($link, $engine, "SMALLINT", -32768, "-32768", 100);
179 func_mysqli_fetch_all_oo($link, $engine, "SMALLINT", 32767, "32767", 110);
180 func_mysqli_fetch_all_oo($link, $engine, "SMALLINT", NULL, NULL, 120);
181 func_mysqli_fetch_all_oo($link, $engine, "SMALLINT UNSIGNED", 65400, "65400", 130);
182 func_mysqli_fetch_all_oo($link, $engine, "SMALLINT UNSIGNED", NULL, NULL, 140);
184 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMINT", -8388608, "-8388608", 150);
185 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMINT", 8388607, "8388607", 160);
186 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMINT", NULL, NULL, 170);
187 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMINT UNSIGNED", 16777215, "16777215", 180);
188 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMINT UNSIGNED", NULL, NULL, 190);
190 func_mysqli_fetch_all_oo($link, $engine, "INTEGER", -2147483648, "-2147483648", 200);
191 func_mysqli_fetch_all_oo($link, $engine, "INTEGER", 2147483647, "2147483647", 210);
192 func_mysqli_fetch_all_oo($link, $engine, "INTEGER", NULL, NULL, 220);
193 func_mysqli_fetch_all_oo($link, $engine, "INTEGER UNSIGNED", "4294967295", "4294967295", 230);
194 func_mysqli_fetch_all_oo($link, $engine, "INTEGER UNSIGNED", NULL, NULL, 240);
196 …func_mysqli_fetch_all_oo($link, $engine, "BIGINT", "-9223372036854775808", "-9223372036854775808",…
197 func_mysqli_fetch_all_oo($link, $engine, "BIGINT", NULL, NULL, 260);
198 …func_mysqli_fetch_all_oo($link, $engine, "BIGINT UNSIGNED", "18446744073709551615", "1844674407370…
199 func_mysqli_fetch_all_oo($link, $engine, "BIGINT UNSIGNED", NULL, NULL, 280);
201 …func_mysqli_fetch_all_oo($link, $engine, "FLOAT", (string)(-9223372036854775808 - 1.1), "-9.22337e…
202 func_mysqli_fetch_all_oo($link, $engine, "FLOAT", NULL, NULL, 300);
203 …func_mysqli_fetch_all_oo($link, $engine, "FLOAT UNSIGNED", (string)(18446744073709551615 + 1.1), "…
204 func_mysqli_fetch_all_oo($link, $engine, "FLOAT UNSIGNED ", NULL, NULL, 320);
206 func_mysqli_fetch_all_oo($link, $engine, "DOUBLE(10,2)", "-99999999.99", "-99999999.99", 330);
207 func_mysqli_fetch_all_oo($link, $engine, "DOUBLE(10,2)", NULL, NULL, 340);
208 …func_mysqli_fetch_all_oo($link, $engine, "DOUBLE(10,2) UNSIGNED", "99999999.99", "99999999.99", 35…
209 func_mysqli_fetch_all_oo($link, $engine, "DOUBLE(10,2) UNSIGNED", NULL, NULL, 360);
211 func_mysqli_fetch_all_oo($link, $engine, "DECIMAL(10,2)", "-99999999.99", "-99999999.99", 370);
212 func_mysqli_fetch_all_oo($link, $engine, "DECIMAL(10,2)", NULL, NULL, 380);
213 func_mysqli_fetch_all_oo($link, $engine, "DECIMAL(10,2)", "99999999.99", "99999999.99", 390);
214 func_mysqli_fetch_all_oo($link, $engine, "DECIMAL(10,2)", NULL, NULL, 400);
218 func_mysqli_fetch_all_oo($link, $engine, "DATE", $date, $date, 410);
219 func_mysqli_fetch_all_oo($link, $engine, "DATE NOT NULL", $date, $date, 420);
220 func_mysqli_fetch_all_oo($link, $engine, "DATE", NULL, NULL, 430);
223 func_mysqli_fetch_all_oo($link, $engine, "DATETIME", $datetime, $datetime, 440);
224 func_mysqli_fetch_all_oo($link, $engine, "DATETIME NOT NULL", $datetime, $datetime, 450);
225 func_mysqli_fetch_all_oo($link, $engine, "DATETIME", NULL, NULL, 460);
227 func_mysqli_fetch_all_oo($link, $engine, "TIMESTAMP", $datetime, $datetime, 470);
230 func_mysqli_fetch_all_oo($link, $engine, "TIME", $time, $time, 480);
231 func_mysqli_fetch_all_oo($link, $engine, "TIME NOT NULL", $time, $time, 490);
232 func_mysqli_fetch_all_oo($link, $engine, "TIME", NULL, NULL, 500);
234 func_mysqli_fetch_all_oo($link, $engine, "YEAR", @date('Y'), @date('Y'), 510);
235 func_mysqli_fetch_all_oo($link, $engine, "YEAR NOT NULL", @date('Y'), @date('Y'), 520);
236 func_mysqli_fetch_all_oo($link, $engine, "YEAR", NULL, NULL, 530);
239 func_mysqli_fetch_all_oo($link, $engine, "CHAR(1)", "a", "a", 540);
240 func_mysqli_fetch_all_oo($link, $engine, "CHAR(255)", $string255, $string255, 550);
241 func_mysqli_fetch_all_oo($link, $engine, "CHAR(1) NOT NULL", "a", "a", 560);
242 func_mysqli_fetch_all_oo($link, $engine, "CHAR(1)", NULL, NULL, 570);
245 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(1)", "a", "a", 580);
246 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(255)", $string255, $string255, 590);
247 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(65400)", $string65k, $string65k, 600);
248 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(1) NOT NULL", "a", "a", 610);
249 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(1)", NULL, NULL, 620);
251 func_mysqli_fetch_all_oo($link, $engine, "BINARY(1)", "a", "a", 630);
252 func_mysqli_fetch_all_oo($link, $engine, "BINARY(2)", chr(0) . "a", chr(0) . "a", 640);
253 func_mysqli_fetch_all_oo($link, $engine, "BINARY(1) NOT NULL", "b", "b", 650);
254 func_mysqli_fetch_all_oo($link, $engine, "BINARY(1)", NULL, NULL, 660);
256 func_mysqli_fetch_all_oo($link, $engine, "VARBINARY(1)", "a", "a", 670);
257 func_mysqli_fetch_all_oo($link, $engine, "VARBINARY(2)", chr(0) . "a", chr(0) . "a", 680);
258 func_mysqli_fetch_all_oo($link, $engine, "VARBINARY(1) NOT NULL", "b", "b", 690);
259 func_mysqli_fetch_all_oo($link, $engine, "VARBINARY(1)", NULL, NULL, 700);
261 func_mysqli_fetch_all_oo($link, $engine, "TINYBLOB", "a", "a", 710);
262 func_mysqli_fetch_all_oo($link, $engine, "TINYBLOB", chr(0) . "a", chr(0) . "a", 720);
263 func_mysqli_fetch_all_oo($link, $engine, "TINYBLOB NOT NULL", "b", "b", 730);
264 func_mysqli_fetch_all_oo($link, $engine, "TINYBLOB", NULL, NULL, 740);
266 func_mysqli_fetch_all_oo($link, $engine, "TINYTEXT", "a", "a", 750);
267 func_mysqli_fetch_all_oo($link, $engine, "TINYTEXT NOT NULL", "a", "a", 760);
268 func_mysqli_fetch_all_oo($link, $engine, "TINYTEXT", NULL, NULL, 770);
270 func_mysqli_fetch_all_oo($link, $engine, "BLOB", "a", "a", 780);
271 func_mysqli_fetch_all_oo($link, $engine, "BLOB", chr(0) . "a", chr(0) . "a", 780);
272 func_mysqli_fetch_all_oo($link, $engine, "BLOB", NULL, NULL, 790);
274 func_mysqli_fetch_all_oo($link, $engine, "TEXT", "a", "a", 800);
275 func_mysqli_fetch_all_oo($link, $engine, "TEXT", chr(0) . "a", chr(0) . "a", 810);
276 func_mysqli_fetch_all_oo($link, $engine, "TEXT", NULL, NULL, 820);
278 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMBLOB", "a", "a", 830);
279 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMBLOB", chr(0) . "a", chr(0) . "a", 840);
280 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMBLOB", NULL, NULL, 850);
282 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMTEXT", "a", "a", 860);
283 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMTEXT", chr(0) . "a", chr(0) . "a", 870);
284 func_mysqli_fetch_all_oo($link, $engine, "MEDIUMTEXT", NULL, NULL, 880);
286 func_mysqli_fetch_all_oo($link, $engine, "LONGBLOB", "a", "a", 890);
287 func_mysqli_fetch_all_oo($link, $engine, "LONGTEXT", chr(0) . "a", chr(0) . "a", 900);
288 func_mysqli_fetch_all_oo($link, $engine, "LONGBLOB", NULL, NULL, 910);
290 func_mysqli_fetch_all_oo($link, $engine, "ENUM('a', 'b')", "a", "a", 920);
291 func_mysqli_fetch_all_oo($link, $engine, "ENUM('a', 'b')", NULL, NULL, 930);
293 func_mysqli_fetch_all_oo($link, $engine, "SET('a', 'b')", "a", "a", 940);
294 func_mysqli_fetch_all_oo($link, $engine, "SET('a', 'b')", NULL, NULL, 950);
296 mysqli_close($link);