summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_dbi.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index 946f7a8..8623437 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -273,6 +273,14 @@ is(
null, # Only SELECT, no UPDATE
"Optimized away UPDATE with same values"
);
+
+$record->_sqllog = array();
+method_exists($record, "store") && @$record->store(array('ID' => 5, 'x' => 8));
+like(
+ $record->_sqllog[1]['query'],
+ "UPDATE",
+ "Check for store() alias of smart_replace for backward compatibility"
+);
$GLOBALS['debug_sqllog'] = false;
# Test field localization feature