Lines Matching refs:id
28 …$db->exec(sprintf('CREATE TABLE test(id INT, label %s) ENGINE=%s', $sql_type, PDO_MYSQL_TEST_ENGIN…
31 $stmt = $db->prepare('INSERT INTO test(id, label) VALUES (?, ?)');
40 $stmt = $db->query('SELECT id, label FROM test');
41 $id = $label = NULL;
42 $stmt->bindColumn(1, $id, PDO::PARAM_INT);
57 if (1 != $id) {
58 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n",
59 $offset, var_export($id, true));
63 $stmt = $db->query('SELECT id, label FROM test');
72 if (1 != $ret['id']) {
73 printf("[%03d + 3] Returned id column value seems wrong, expecting 1 got %s.\n",
74 $offset, var_export($ret['id'], true));