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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user