0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00
Commit Graph

79 Commits

Author SHA1 Message Date
rbock
43ec2343c3 Fix serialization of empty dynamic_where
It was serialized with a dummy expression, which turned out to be
problematic for some vendors, see #282
2019-08-20 10:31:54 +02:00
rbock
d1b8bde8f1 Cleanup bogus return statements 2019-02-27 13:53:28 +01:00
rbock
6a9715b59d Use clang-tidy to wrap single-line blocks into {} 2017-09-10 15:05:34 +02:00
rbock
c09a0b5ee8 Use clang-format to explicitly mark unused parameters 2017-09-10 14:58:51 +02:00
rbock
306ce63f2f Use clang-format to add closing namespace comments 2017-09-10 14:56:51 +02:00
rbock
ac765993aa Use clang-format to streamline include guards 2017-09-10 14:55:11 +02:00
rbock
2cafb56266 Improved a few assert wrapper names 2016-09-04 10:44:14 +02:00
rbock
827c8dbf61 The previous fix wasn't.
Found this via build-system tests of static asserts through MSVC.
2016-09-02 22:35:12 +02:00
rbock
cf83978118 Migrated select clauses to returning wrapped asserts
This helps a lot in testing static asserts (and debuging expressions
with MSVC)
2016-09-01 12:06:40 +02:00
rbock
471fb7bf14 Fixed typo 2016-07-31 16:47:36 +02:00
rbock
10bdf4cfca Added a few serializer tests for free function select clauses 2016-04-15 18:21:22 +02:00
rbock
7bf7388907 Added more tests 2016-04-08 21:09:36 +02:00
rbock
f3bd2f01ab Removed the add_ntc functions (use without_table_check) 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
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
8079015d2c Removed where(true). 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
292bc8dd28 fixed test_static_asserts 2015-12-28 13:19:17 +03:00
sliser
761b5e53ab added msvc workaround
fixed minor bugs
2015-12-28 12:58:30 +03:00
rbock
820195b303 Turned off is_regular for msvc 2015-12-28 10:39:53 +01:00
rbock
d1cc617ae7 Split dynamic where in a specific one for zero arguments (and the old one) 2015-12-28 10:11:18 +01:00
rbock
6ae63dd0be replaced value_type_of, too 2015-12-28 09:47:26 +01:00
rbock
db6ea81668 Well, replaced another template alias (is_boolean_t) 2015-12-28 09:39:16 +01:00
rbock
325d64828e Stop using yet another template alias (contains_aggregate_function_t) 2015-12-28 09:30:02 +01:00
rbock
e364afe38f Replace is_expression_t<> with detail::is_expression_impl<>::type 2015-12-28 09:18:47 +01:00
rbock
bab5b6d8ee Merge branch 'develop' of https://github.com/isliser/sqlpp11 into isliser-develop
Conflicts:
	include/sqlpp11/where.h
2015-12-27 19:57:42 +01:00
sliser
46cb009ba4 added comments regarding msvc bug workarounds 2015-12-27 11:26:29 +03:00
rbock
9a29f41037 Streamlined portable static asserts. 2015-12-25 10:38:13 +01: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
37c4f5dc6c Prevent aggregate functions to be used within where conditions 2015-12-23 20:27:16 +01:00
sliser
4e898368fa fixed gcc build 2015-12-16 09:41:01 +03:00
sliser
a6f506b57f fixed build for msvs 2015 update 1 2015-12-15 18:20:33 +03:00
rbock
333e55ea6d Dynamic select did not accept some non-dynamic clauses. 2015-12-11 14:42:28 +01:00
rbock
09f23cea0a Reformatted using clang-format
Please use clang-format before submitting code, e.g via the pre-commit
supplied in the repo (thanks AndiDog)
2015-09-13 21:33:19 +02:00
Reto Schneider
5756b2355f Remove trailing spaces. 2015-08-05 14:43:21 +02:00
rbock
1e9910b12f Replaced node tuple by node type vector 2015-02-17 08:03:19 +01:00
rbock
436ef67072 Replaced recursive traits with local traits which are evaluated recursively
Ok, that sounds weird...

Earlier, each node in the SQL tree had a struct containing all recursive
traits. This is now gone. It only contains a reference to all sub nodes
and its own specific traits.
2015-02-17 07:05:41 +01:00
rbock
97de6fad7f Adjusted license dates 2015-02-15 19:00:21 +01:00
rbock
f50500ba8b Fixed a few superflous semicolons 2015-02-09 18:39:03 +01:00
rbock
f02a9ce3d0 Moved logic functions from detail into logic namespace 2014-11-29 14:29:54 +01:00
rbock
9110f6653a Reduced error messages for several clauses 2014-11-29 14:02:24 +01:00
rbock
f62891d25f Merged _member and _methods in clauses to _base
This makes statement_t look much nicer and use less inheritance
2014-11-29 11:10:01 +01:00
rbock
0e27cd7138 Added serialize checks for dynamically added stuff 2014-11-26 10:02:48 +01:00
rbock
935baebedb Added more specific static asserts for the consistency checks 2014-11-25 21:46:09 +01:00
rbock
809d42e4a1 Introduced check for serializability 2014-11-25 17:43:55 +01:00
rbock
e1c007287c Added portable static asserts 2014-11-23 20:06:58 +01:00
rbock
59734b3f51 Moved static asserts for inconsistency errors much closer to call site 2014-11-17 19:05:22 +01:00