Lines Matching refs:mysqli
23 $mysqli = new mysqli();
24 if (!is_null($tmp = @$mysqli->commit())) {
28 if (!$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) {
33 if (true !== ($tmp = $mysqli->commit())) {
37 if (true !== ($tmp = $mysqli->autocommit(false))) {
41 if (!$mysqli->query('DROP TABLE IF EXISTS test')) {
42 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
45 if (!$mysqli->query('CREATE TABLE test(id INT) ENGINE = InnoDB')) {
46 printf("[005] Cannot create test table, [%d] %s\n", $mysqli->errno, $mysqli->error);
49 if (!$mysqli->query('INSERT INTO test(id) VALUES (1)')) {
50 printf("[006] [%d] %s\n", $mysqli->errno, $mysqli->error);
53 $tmp = $mysqli->commit();
58 if (!$mysqli->query('ROLLBACK'))
59 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
61 if (!$res = $mysqli->query('SELECT COUNT(*) AS num FROM test')) {
62 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
71 if (!$mysqli->query('DROP TABLE IF EXISTS test')) {
72 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
75 if (!$mysqli->commit(0 , "tx_name0123")) {
76 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
78 if (!$mysqli->commit(0 , "*/ nonsense")) {
79 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
81 if (!$mysqli->commit(0 , "tx_name ulf вендел")) {
82 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
84 if (!$mysqli->commit(0 , "tx_name \t\n\r\b")) {
85 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
87 if (!$mysqli->commit(MYSQLI_TRANS_COR_AND_CHAIN | MYSQLI_TRANS_COR_NO_RELEASE , "tx_name")) {
88 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error);
91 $mysqli->close();
93 if (NULL !== ($tmp = @$mysqli->commit())) {
104 Warning: mysqli::commit(): Transaction name truncated. Must be only [0-9A-Za-z\-_=]+ in %s on line …
106 Warning: mysqli::commit(): Transaction name truncated. Must be only [0-9A-Za-z\-_=]+ in %s on line …
108 Warning: mysqli::commit(): Transaction name truncated. Must be only [0-9A-Za-z\-_=]+ in %s on line …