diff options
author | Christian Schneider | 2012-11-01 15:52:58 +0000 |
---|---|---|
committer | Christian Schneider | 2012-11-01 15:52:58 +0000 |
commit | 8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23 (patch) | |
tree | e2a503418e66c94fefcae116c9709d84d02099c9 /tests | |
parent | 2bd1adf0e007d8024d3a8f0c038d94d93e9ed819 (diff) | |
download | itools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.tar.gz itools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.tar.bz2 itools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.zip |
Added alias store() for smart_replace() to maintain API backward compatibility
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/it_dbi.t | 8 |
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 |