/hphp/test/zend/bad/ext/pdo_mysql/tests/last_insert_id.php
http://github.com/facebook/hiphop-php · PHP · 11 lines · 7 code · 4 blank · 0 comment · 0 complexity · e01b2e0795c3c5194a9fb536dfd6d10d MD5 · raw file
- <?php
- require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
- $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
- print_r($db->query("CREATE TABLE test (id int auto_increment primary key, num int)"));
- print_r($db->query("INSERT INTO test (id, num) VALUES (23, 42)"));
- print_r($db->query("INSERT INTO test (num) VALUES (451)"));
- print_r($db->lastInsertId());