Lines Matching refs:db
8 $db = MySQLPDOTest::factory();
13 $db = MySQLPDOTest::factory();
14 MySQLPDOTest::createTestTable($db);
35 $code = $db->errorCode();
36 check_error(2, $db);
38 $stmt = $db->query('SELECT id, label FROM test');
40 check_error(3, $db);
43 $db->exec('DROP TABLE IF EXISTS test');
45 check_error(4, $db);
49 $db->exec('DROP TABLE IF EXISTS unknown');
50 @$stmt = $db->query('SELECT id, label FROM unknown');
51 check_error(7, $db, '42S02');
53 MySQLPDOTest::createTestTable($db);
54 $stmt = $db->query('SELECT id, label FROM test');
55 check_error(8, $db);
58 $db2 = &$db;
59 @$db->query('SELECT id, label FROM unknown');
60 check_error(10, $db, '42S02');
67 $tmp = @$db->getAttribute($invalid_attr);
68 check_error(14, $db, 'IM001');
75 $e->getMessage(), $db->errorCode(), implode(' ', $db->errorInfo()));