0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Made dynamic select column list a bit more customization friendly

See https://github.com/matthijs/sqlpp11-connector-postgresql/issues/8
This commit is contained in:
rbock 2016-03-17 20:46:26 +01:00
parent 153427d2b8
commit 8b30569013

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2013-2016, Roland Bock
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, * Redistribution and use in source and binary forms, with or without modification,
@ -29,6 +29,7 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <sqlpp11/no_name.h>
#include <sqlpp11/named_interpretable.h> #include <sqlpp11/named_interpretable.h>
namespace sqlpp namespace sqlpp
@ -56,13 +57,7 @@ namespace sqlpp
template <> template <>
struct dynamic_select_column_list<void> struct dynamic_select_column_list<void>
{ {
struct _names_t using _names_t = no_name_t;
{
static constexpr size_t size()
{
return 0;
}
};
_names_t _dynamic_expression_names; _names_t _dynamic_expression_names;
static constexpr bool empty() static constexpr bool empty()