mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-06 05:00:37 -06:00
Fix incorrect for_update function, #583
This commit is contained in:
@@ -51,6 +51,9 @@ int ForUpdate(int, char* [])
|
||||
const auto foo = test::TabFoo{};
|
||||
// const auto bar = test::TabBar{};
|
||||
|
||||
compare(__LINE__, sqlpp::for_update(),
|
||||
" FOR UPDATE ");
|
||||
|
||||
// Unconditionally
|
||||
compare(__LINE__, select(foo.omega).from(foo).unconditionally().for_update(),
|
||||
"SELECT tab_foo.omega FROM tab_foo FOR UPDATE ");
|
||||
|
||||
Reference in New Issue
Block a user