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

Minor fixes

This commit is contained in:
rbock 2015-05-01 18:19:00 +02:00
parent 4fbcf77926
commit a915f36b46
2 changed files with 2 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#ifndef SQLPP_SCHEMA_H #ifndef SQLPP_SCHEMA_H
#define SQLPP_SCHEMA_H #define SQLPP_SCHEMA_H
#include <string> #include <sqlpp11/type_traits.h>
#include <sqlpp11/serializer.h> #include <sqlpp11/serializer.h>
namespace sqlpp namespace sqlpp

View File

@ -29,9 +29,6 @@
#include <sqlpp11/functions.h> #include <sqlpp11/functions.h>
#include <sqlpp11/select.h> #include <sqlpp11/select.h>
#include <iostream>
int main() int main()
{ {
MockDb db = {}; MockDb db = {};
@ -115,7 +112,7 @@ int main()
std::cerr << x.alpha << std::endl; std::cerr << x.alpha << std::endl;
} }
// Check that a prepared select is default-constructible // Check that a prepared select is default-constructable
{ {
auto s = select(all_of(t)).from(t).where((t.beta.like(parameter(t.beta)) and t.alpha == parameter(t.alpha)) or t.gamma != parameter(t.gamma)); auto s = select(all_of(t)).from(t).where((t.beta.like(parameter(t.beta)) and t.alpha == parameter(t.alpha)) or t.gamma != parameter(t.gamma));
using P = decltype(db.prepare(s)); using P = decltype(db.prepare(s));