cvs: php4 /ext/dba/tests dba_handler.inc
| From: | Marcus B�rger | Date: | Thu, 07 Nov 2002 14:18:42 +0000 |
| Subject: | cvs: php4 /ext/dba/tests dba_handler.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15872@lists.php.net to get a copy of this message | ||
helly Thu Nov 7 09:18:42 2002 EDT
Modified files:
/php4/ext/dba/tests dba_handler.inc
Log:
add test to see if insert fails when key already exists
Index: php4/ext/dba/tests/dba_handler.inc
diff -u php4/ext/dba/tests/dba_handler.inc:1.3 php4/ext/dba/tests/dba_handler.inc:1.4
--- php4/ext/dba/tests/dba_handler.inc:1.3 Wed Nov 6 07:01:36 2002
+++ php4/ext/dba/tests/dba_handler.inc Thu Nov 7 09:18:42 2002
@@ -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";