Lines Matching refs:query
23 $db->query('DROP TABLE IF EXISTS test');
24 $db->query('CREATE TABLE test (first int) ENGINE = InnoDB');
25 $db->query('INSERT INTO test VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9)');
30 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
31 echo "Running query on $name\n";
33 $stmt = $db->query($query);
43 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
44 echo "Running query on $name\n";
45 $stmt = $db->prepare($query);
58 $query = "SELECT first FROM test WHERE first = 1 FOR UPDATE";
59 echo "Running query on $name\n";
60 $stmt = $db->prepare($query);
100 Running query on first connection
102 Running query on second connection
105 Running query on first connection
107 Running query on second connection
110 Running query on first connection
112 Running query on second connection