summaryrefslogtreecommitdiff
path: root/test/it_dbi.t
diff options
context:
space:
mode:
authorChristian Schneider2025-10-22 14:33:39 +0200
committerChristian Schneider2025-10-22 14:33:39 +0200
commitd110521779d52e765248e6c287f6d32f65939ecb (patch)
tree7f25267cc84dce9f499dd439aeeede91e7c197df /test/it_dbi.t
parent37d796854b6ec34acdd0a25ecfb0263eb8ac25df (diff)
downloaditools-d110521779d52e765248e6c287f6d32f65939ecb.tar.gz
itools-d110521779d52e765248e6c287f6d32f65939ecb.tar.bz2
itools-d110521779d52e765248e6c287f6d32f65939ecb.zip
Fix completely removing dyncol column when a where-clause is given to update()
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-xtest/it_dbi.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t
index 083047f..1140c55 100755
--- a/test/it_dbi.t
+++ b/test/it_dbi.t
@@ -439,6 +439,8 @@ $r->iterate();
is($r->_dyndata, [], '_dyndata for record with empty dyncols should be empty');
$r->update(['key3' => 'c']);
is($r->key3, 'c', 'dynamic column for record with empty dyncols whould be correctly created');
+$r->update(['key3' => null], ['ID' => 3]);
+is($r->key3, null, 'remove dynamic column completely if where-clause is given');
$r->clear(false);
is($r->select(['-key1 IS NOT' => 'NULL']), 1, 'only one entry has a value for key1');