From: Marcus Boerger Date: Thu, 7 Nov 2002 14:18:42 +0000 (+0000) Subject: add test to see if insert fails when key already exists X-Git-Tag: php-4.3.0RC1~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a2a41b5f29fa52f5d1ea2fd0696ea5b5c5a6e20;p=php add test to see if insert fails when key already exists --- diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc index e8bb97c1a0..87a77b7873 100644 --- a/ext/dba/tests/dba_handler.inc +++ b/ext/dba/tests/dba_handler.inc @@ -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";