Lines Matching refs:link
15 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
18 function func_mysqli_stmt_fetch_geom($link, $engine, $sql_type, $bind_value, $offset) {
20 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
21 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
25 …if (!mysqli_query($link, sprintf("CREATE TABLE test(id INT, label %s, PRIMARY KEY(id)) ENGINE = %s…
32 if (!mysqli_query($link, $sql)) {
33 … printf("[%04d] [%d] %s\n", $offset + 2 + $id, mysqli_errno($link), mysqli_error($link));
37 if (!$stmt = mysqli_stmt_init($link)) {
38 printf("[%04d] [%d] %s\n", $offset + 6, mysqli_errno($link), mysqli_error($link));
81 if (!$stmt = mysqli_stmt_init($link)) {
82 printf("[%04d] [%d] %s\n", $offset + 10, mysqli_errno($link), mysqli_error($link));
103 … if (!$res_normal = mysqli_query($link, sprintf("SELECT id, label FROM test WHERE id = %d",
105 printf("[%04d] [%d] %s\n", $offset + 14, mysqli_errno($link), mysqli_error($link));
110 printf("[%04d] [%d] %s\n", $offset + 15, mysqli_errno($link), mysqli_error($link));
124 $geomFromText = $link->server_version >= 80000 ? "ST_GeomFromText" : "GeomFromText";
125 func_mysqli_stmt_fetch_geom($link, $engine, "GEOMETRY", "$geomFromText('POINT(2 2)')", 20);
126 func_mysqli_stmt_fetch_geom($link, $engine, "POINT", "$geomFromText('POINT(1 1)')", 40);
127 …func_mysqli_stmt_fetch_geom($link, $engine, "LINESTRING", "$geomFromText('LINESTRING(0 0,1 1,2 2)'…
128 …func_mysqli_stmt_fetch_geom($link, $engine, "POLYGON", "$geomFromText('POLYGON((0 0,10 0,10 10,0 1…
129 …func_mysqli_stmt_fetch_geom($link, $engine, "MULTIPOINT", "$geomFromText('MULTIPOINT(1 1, 2 2)')",…
130 …func_mysqli_stmt_fetch_geom($link, $engine, "MULTILINESTRING", "$geomFromText('MULTILINESTRING((0 …
131 …func_mysqli_stmt_fetch_geom($link, $engine, "MULTIPOLYGON", "$geomFromText('MULTIPOLYGON(((0 0,10 …
132 …func_mysqli_stmt_fetch_geom($link, $engine, "GEOMETRYCOLLECTION", "$geomFromText('GEOMETRYCOLLECTI…
134 mysqli_close($link);