1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

add test to see if insert fails when key already exists

This commit is contained in:
Marcus Boerger
2002-11-07 14:18:42 +00:00
parent 927033c616
commit 2a2a41b5f2
+1
View File
@@ -34,6 +34,7 @@
}
if ($db_writer!==FALSE) {
dba_insert("key number 6", "The 6th value", $db_writer);
@dba_insert("key number 6", "The 6th value inserted again would be an error", $db_writer);
dba_replace("key2", "Content 2 replaced 2nd time", $db_writer);
dba_delete("key4", $db_writer);
echo dba_fetch("key2", $db_writer)."\n";