Lines Matching refs:db
17 $db = PDOTest::factory();
19 @$db->exec("DROP TABLE test");
20 $db->exec("CREATE TABLE test (x int)");
21 $db->exec("INSERT INTO test VALUES (1)");
24 $db->query('SELECT * FROM bad_table');
27 var_dump(is_string($db->errorInfo()[0])) . "\n";
28 var_dump(is_int($db->errorInfo()[1])) . "\n";
29 var_dump(is_string($db->errorInfo()[2])) . "\n";
31 $stmt = $db->query('SELECT * FROM test');
34 var_dump($db->errorInfo());
37 $db->exec("INSERT INTO bad_table VALUES(1)");
40 var_dump(is_string($db->errorInfo()[0])) . "\n";
41 var_dump(is_int($db->errorInfo()[1])) . "\n";
42 var_dump(is_string($db->errorInfo()[2])) . "\n";
44 $db->exec("INSERT INTO test VALUES (2)");
45 var_dump($db->errorInfo());
47 $db->exec("DROP TABLE test");