mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
add test to see if insert fails when key already exists
This commit is contained in:
parent
927033c616
commit
2a2a41b5f2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user