mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-07 13:41:11 -06:00
Added -Wshadow and un-inlined namespace alias
Not sure if inlining alias was a good idea to begin with...
This commit is contained in:
@@ -39,7 +39,7 @@ MockDb::_serializer_context_t printer;
|
||||
template<typename Column>
|
||||
int64_t getColumn(const Column& column)
|
||||
{
|
||||
auto result = db(select(column.as(sqlpp::a)).from(column.table()).where(true));
|
||||
auto result = db(select(column.as(sqlpp::alias::a)).from(column.table()).where(true));
|
||||
if (not result.empty())
|
||||
return result.front().a;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user