0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 21:04:15 +08:00
sqlpp11/test_constraints
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
..
CMakeLists.txt Fixed test for missing conversion operator 2015-12-28 18:36:06 +01:00
count_of_count.cpp Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00
max_of_max.cpp Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00
must_not_insert.cpp Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00
must_not_update.cpp Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00
no_conversion_operator_if_null_not_trivial.cpp Prevent unconditional joins, and naked bool in where() or boolean expressions 2016-03-20 09:13:49 +01:00
require_insert.cpp Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00