Lines Matching refs:db
13 $db = MySQLPDOTest::factory();
16 MySQLPDOTest::createTestTable($table, $db);
34 $code = $db->errorCode();
35 check_error(2, $db);
37 $stmt = $db->query("SELECT id, label FROM {$table}");
39 check_error(3, $db);
42 $db->exec("DROP TABLE IF EXISTS {$table}");
44 check_error(4, $db);
48 $db->exec('DROP TABLE IF EXISTS pdo_mysql_errorcode_unknown');
49 @$stmt = $db->query('SELECT id, label FROM pdo_mysql_errorcode_unknown');
50 check_error(7, $db, '42S02');
52 MySQLPDOTest::createTestTable($table, $db);
53 $stmt = $db->query("SELECT id, label FROM {$table}");
54 check_error(8, $db);
57 $db2 = &$db;
58 @$db->query('SELECT id, label FROM pdo_mysql_errorcode_unknown');
59 check_error(10, $db, '42S02');
66 $tmp = @$db->getAttribute($invalid_attr);
67 check_error(14, $db, 'IM001');
74 $e->getMessage(), $db->errorCode(), implode(' ', $db->errorInfo()));
82 $db = MySQLPDOTest::factory();
83 $db->query('DROP TABLE IF EXISTS pdo_mysql_errorcode');