Lines Matching refs:db
16 $db = PDOTest::factory();
18 @$db->exec("DROP TABLE test");
19 $db->exec("CREATE TABLE test (x int)");
20 $db->exec("INSERT INTO test VALUES (1)");
23 $db->query('SELECT * FROM bad_table');
26 var_dump(is_string($db->errorInfo()[0])) . "\n";
27 var_dump(is_int($db->errorInfo()[1])) . "\n";
28 var_dump(is_string($db->errorInfo()[2])) . "\n";
30 $stmt = $db->query('SELECT * FROM test');
33 var_dump($db->errorInfo());
36 $db->exec("INSERT INTO bad_table VALUES(1)");
39 var_dump(is_string($db->errorInfo()[0])) . "\n";
40 var_dump(is_int($db->errorInfo()[1])) . "\n";
41 var_dump(is_string($db->errorInfo()[2])) . "\n";
43 $db->exec("INSERT INTO test VALUES (2)");
44 var_dump($db->errorInfo());
46 $db->exec("DROP TABLE test");