Fix incorrect for_update function, #583

This commit is contained in:
Roland Bock
2024-07-23 20:58:25 +02:00
parent d6f5e498b9
commit 505adb546a
2 changed files with 5 additions and 3 deletions

View File

@@ -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 ");