Lines Matching refs:query
25 $db->query('DROP TABLE IF EXISTS test');
26 $db->query('CREATE TABLE test (first int) ENGINE = InnoDB');
27 $db->query('INSERT INTO test VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9)');
32 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
33 echo "Running query on $name\n";
35 $stmt = $db->query($query);
45 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
46 echo "Running query on $name\n";
47 $stmt = $db->prepare($query);
60 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
61 echo "Running query on $name\n";
62 $stmt = $db->prepare($query);
102 Running query on first connection
104 Running query on second connection
107 Running query on first connection
109 Running query on second connection
112 Running query on first connection
114 Running query on second connection