This commit is contained in:
Ulf Wendel 2011-09-01 11:27:14 +00:00
parent 3814ee1e5d
commit 9e79833943

View File

@ -31,7 +31,7 @@ API vs. SQL LAST_INSERT_ID()
$host, $user, $db, $port, $socket);
if (!$link->query("DROP TABLE IF EXISTS test") ||
!$link->query("CREATE TABLE test (id INT auto_increment, label varchar(10) not null, PRIMARY KEY (id))") ||
!$link->query("CREATE TABLE test (id INT auto_increment, label varchar(10) not null, PRIMARY KEY (id)) ENGINE=MyISAM") ||
!$link->query("INSERT INTO test (id, label) VALUES (null, 'a')")) {
printf("[002] [%d] %s\n", $link->errno, $link->error);
}