mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-04-30 16:09:30 -05:00
Fixed some clang warnings
This commit is contained in:
@@ -162,7 +162,7 @@ namespace sqlpp
|
||||
using _serialize_check = serialize_check_of<Context>;
|
||||
using T = for_update_data_t;
|
||||
|
||||
static Context& _(const T& t, Context& context)
|
||||
static Context& _(const T&, Context& context)
|
||||
{
|
||||
context << " FOR UPDATE ";
|
||||
return context;
|
||||
|
||||
@@ -31,11 +31,13 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
/*
|
||||
auto getTrue() -> std::string
|
||||
{
|
||||
MockDb::_serializer_context_t printer = {};
|
||||
return serialize(sqlpp::value(true), printer).str();
|
||||
}
|
||||
*/
|
||||
|
||||
auto getFalse() -> std::string
|
||||
{
|
||||
@@ -47,14 +49,14 @@ namespace
|
||||
int ForUpdate(int, char* [])
|
||||
{
|
||||
const auto foo = test::TabFoo{};
|
||||
const auto bar = test::TabBar{};
|
||||
// const auto bar = test::TabBar{};
|
||||
|
||||
// Unconditionally
|
||||
compare(__LINE__, select(foo.omega).from(foo).unconditionally().for_update(), "SELECT tab_foo.omega FROM tab_foo FOR UPDATE ");
|
||||
compare(__LINE__, select(foo.omega).from(foo).unconditionally().for_update(),
|
||||
"SELECT tab_foo.omega FROM tab_foo FOR UPDATE ");
|
||||
|
||||
// Never
|
||||
compare(__LINE__, where(sqlpp::value(false)), " WHERE " + getFalse());
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user