rbock
fbbdc75e64
Added missing file (with some more tests)
2016-04-09 21:53:39 +02:00
rbock
dff0c9942a
A bit of cleanup
2016-04-09 21:46:31 +02:00
rbock
0fb188c67d
More re-arrangements and preventing self-compare in in() again
2016-04-09 10:55:46 +02:00
rbock
7bf7388907
Added more tests
2016-04-08 21:09:36 +02:00
rbock
a77f26ffe3
Prevent self-comparison, added more tests, fixed some expression checks
2016-04-07 21:53:19 +02:00
rbock
3e008a2b04
Intermediate state
2016-04-06 10:16:35 +02:00
rbock
712c79cb8a
Added static_assert tests for dynamic from.add()
2016-03-24 19:54:16 +01:00
rbock
e478695891
Fixed function name
2016-03-22 10:03:37 +01:00
rbock
67af04e8f8
Fixed function name
2016-03-22 09:42:08 +01:00
rbock
cf9ec10ae4
Added table checks for dynamic_join(x).add(y)
2016-03-22 09:23:37 +01:00
rbock
a8b9014fc2
Enforce having expression to consist of aggregates
2016-03-20 09:13:50 +01:00
rbock
a836e8c8d8
Simplified where() to have one argument only
2016-03-20 09:13:50 +01:00
rbock
d15cb2a410
Added "real" cross join
2016-03-20 09:13:49 +01:00
rbock
20b74206ae
Added tests for dynamic joins
2016-03-20 09:13:49 +01:00
rbock
cf5ddfde00
Added portable static asserts for joins and first static tests
2016-03-20 09:13:49 +01:00
rbock
20adfb66c9
Made from() testable with portable static asserts, added tests
...
Added cross_join_t, simplifying join a lot
2016-03-20 09:13:49 +01:00
rbock
f774dca912
Cleaning up static asserts for .where(true)
2016-03-20 09:13:49 +01:00
rbock
15247504f2
Disallow unconditional join (ifdef to get it back)
...
One day, users of the library have to make the switch anyway, why not
today?
2016-03-20 09:13:49 +01:00
rbock
5e96551f83
Prevent unconditional joins, and naked bool in where() or boolean expressions
...
- `.from(t1, t2)` produces an unconditional join if you forget to add a condition in the .where()
sqlpp11 therefore now deprecates unconditional joins.
- more often than not, writing something like `where(name == "doe")`, you
meant to write `where(t.name == "doe")`. It is hard to find bugs when
the former expression compiles because you happen to have a variable
`name` in the current scope as well.
sqlpp11 therefore now deprecates `.where(bool)` and disallows
raw bool values boolean expression like `something and bool`
wrap bools in sqlpp::value(), if you REALLY want a bool value here
2016-03-20 09:13:49 +01:00
rbock
6dcdc419c1
Merge branch 'release/0.35'
...
Conflicts:
README.md
2015-12-29 11:03:17 +01:00
sliser
b812ed5120
fixed appveyor build
2015-12-28 16:42:26 +03:00
rbock
02f4dd1793
Migrated case to portable static assert and added static tests
2015-12-24 21:11:00 +01:00
rbock
899c868f5e
Migrated where to portable assertions, added assertion tests to where() clause.
2015-12-24 15:28:07 +01:00
rbock
173d6adbc9
Moved data types into separate folder, split boolean
...
Each file within data_types/boolean/ is relatively short and easy to
grok.
2015-10-29 22:21:46 +01:00
rbock
84ab264702
Renamed date/date_time to day_point/time_point
2015-10-29 16:41:45 +01:00
rbock
56d312a59b
Added compile time tests for date and date_time
2015-10-13 21:25:10 +02:00
rbock
3e7bd26b7f
Added tests for insert's dynamic_set, too
2015-10-07 20:48:20 +02:00
rbock
b0d89520a6
Added a bunch of tests for static_assert in insert
2015-10-06 22:08:44 +02:00
rbock
3c699a51b6
Added test folder for static assert tests (more tests will follow)
2015-10-03 21:20:01 +02:00