From 4fbcf77926da239b53d1079127b188f5d8f12afc Mon Sep 17 00:00:00 2001 From: rbock Date: Fri, 1 May 2015 18:18:08 +0200 Subject: [PATCH] Disallow table alias for insert --- include/sqlpp11/into.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sqlpp11/into.h b/include/sqlpp11/into.h index 4e05b9c4..53cf22be 100644 --- a/include/sqlpp11/into.h +++ b/include/sqlpp11/into.h @@ -139,7 +139,7 @@ namespace sqlpp using _database_t = typename Policies::_database_t; template - using _check = logic::all_t::value>; + using _check = logic::all_t::value>; template using _new_statement_t = new_statement_t; @@ -150,7 +150,7 @@ namespace sqlpp auto into(Table table) const -> _new_statement_t<_check, into_t> { - static_assert(_check
::value, "argument is not a table in into()"); + static_assert(_check
::value, "argument is not a raw table in into()"); return _into_impl(_check
{}, table); }