0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00
sqlpp11/tests
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
..
BooleanExpression.cpp Merge branch 'release/0.35' 2015-12-29 11:03:17 +01:00
CMakeLists.txt Several minor date/time fixes, new tests 2015-10-28 20:52:43 +01:00
CustomQuery.cpp Merge branch 'release/0.35' 2015-12-29 11:03:17 +01:00
DateTime.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Function.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Insert.cpp Merge branch 'release/0.35' 2015-12-29 11:03:17 +01:00
Interpret.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
is_regular.h Turned off is_regular for msvc 2015-12-28 10:39:53 +01:00
Minimalistic.cpp Merge branch 'release/0.35' 2015-12-29 11:03:17 +01:00
MockDb.h Migrated case to portable static assert and added static tests 2015-12-24 21:11:00 +01:00
Prepared.cpp Merge branch 'release/0.35' 2015-12-29 11:03:17 +01:00
Remove.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Result.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Sample.h Moved data types into separate folder, split boolean 2015-10-29 22:21:46 +01:00
sample.sql Added compile time tests for date and date_time 2015-10-13 21:25:10 +02:00
Select.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
SelectType.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Union.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
Update.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
With.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00