Lines Matching refs:link
12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
15 if (!have_innodb($link))
16 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
23 $link = NULL;
28 if (!is_null($tmp = @mysqli_rollback($link)))
31 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
35 if (!is_null($tmp = @mysqli_rollback($link, 'foo')))
38 if (true !== ($tmp = mysqli_autocommit($link, false)))
41 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test'))
42 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 if (!mysqli_query($link, 'CREATE TABLE test(id INT) ENGINE = InnoDB'))
45 printf("[007] Cannot create test table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
47 if (!mysqli_query($link, 'INSERT INTO test(id) VALUES (1)'))
48 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
50 $tmp = mysqli_rollback($link);
54 if (!$res = mysqli_query($link, 'SELECT COUNT(*) AS num FROM test'))
55 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
61 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test'))
62 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
64 mysqli_close($link);
66 if (!is_null($tmp = mysqli_rollback($link)))