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

39 Commits

Author SHA1 Message Date
Roland Bock
d68744c432 Add is_equal_or_null(col, some_value_or_null)
This replaces the former implicit tvin logic with an explicit function.
2021-07-25 15:22:12 +02:00
Roland Bock
db0295a9d0 Remove tvin
This was a special feature for a project I was working on long ago.
It provided implicit behavior for trivial value (0 or "") which were
supposed to be interpreted as NULL.
They led to `operator==` potentially being serialized as 'IS NULL'.

It makes more sense to introduce explicit helpers, e.g.

 - equal_or_is_null(col, optional)
 - not_equal_or_is_not_null(col, optional)
2021-07-11 12:47:13 +02:00
GCarneiroA
cc946f8a32
Remove extra ; (#358)
Co-authored-by: Gustavo Carneiro <gcarneiroa@hotmail.com>
2021-05-09 09:30:38 +02:00
Roland Bock
9203e3818f Remove null_is_trivial_value
Unless you have null_is_trivial_value or trivial_value_is_null somewhere in your code, this should not affect you.
2020-09-29 08:42:37 +02:00
MacDue
d1b34b6098
Add support for parameterized_verbatim (#341)
* Add support for parameterized_verbatim

Co-authored-by: MacDue <macdue@dueutil.tech>
2020-06-23 09:07:38 +02:00
MacDue
a51b6da3bd
Minimal over() implementation for aggregate functions (#316)
* Minimal over() implementation for aggregate functions

* auto_alias support for over()

* add missing typename

* Test .over() serialization

* Add missing return to test

* Fix testing over auto alias

Co-authored-by: Ben Maxwell <42680490+MaciumDue@users.noreply.github.com>
2020-02-15 07:54:22 +01:00
rbock
bb77cc1459 Fix missing space for operator- 2019-10-09 07:25:24 +02:00
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
c729387ab6 Allow INSERT INTO from SELECT 2019-04-11 11:30:25 +02:00
Daniel Evers
460557c6e0 Added string_view tests and C++17 tests for travis 2019-02-02 11:00:59 +01:00
rbock
cc96fc44ef Formatting... 2018-06-01 09:53:39 +02:00
Philippe Daouadi
1b12fddb7a Add support for std::array blobs 2018-03-10 20:49:57 +01:00
rbock
1e029807da Add blob data type 2018-03-10 07:45:01 +01:00
rbock
62e989c8b3 Remove superfluous semicolon 2017-10-16 20:42:29 +02:00
rbock
64498654b7 Fixed some clang warnings 2017-06-25 13:01:43 +02:00
Serge Robyns
8314803553 Fixed copyright message 2017-04-10 22:12:51 +02:00
Serge Robyns
c8c4515fb7 Added ForUpdate tests 2017-04-10 22:10:10 +02:00
rbock
5e52a4da46 Added a few auto alias tests 2016-12-25 21:25:01 +01:00
rbock
7c20a68e0b Fixed result types for signed OP unsigned expressions. 2016-11-12 10:35:03 +01:00
rbock
7f701dff90 Added a first few tests for .as() 2016-11-10 12:28:46 +01:00
Andreas Sommer
609766a9fe Allow dynamic sort order 2016-09-16 19:30:17 +02:00
rbock
3d67da2373 Added missing .unconditionally() member functions for joins 2016-09-13 21:37:53 +02:00
rbock
6bdddcc343 Fix braces around sub-selects used as tables 2016-09-13 21:08:01 +02:00
rbock
94a0eee117 Enforce unsigned integral values for limit and offset 2016-09-06 22:34:59 +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
0ec6860fda Added test for hidden custom query result type 2016-08-23 18:18:16 +02:00
rbock
7771ed8269 Added serializer tests for insert 2016-05-11 19:10:23 +02:00
rbock
914ecae7c2 Added more tests and fixed dynamic free clauses 2016-04-16 09:51:13 +02:00
rbock
be7403c1e7 Added missing test file 2016-04-15 19:05:42 +02:00
rbock
10bdf4cfca Added a few serializer tests for free function select clauses 2016-04-15 18:21:22 +02:00
rbock
3e008a2b04 Intermediate state 2016-04-06 10:16:35 +02:00
rbock
ec81299259 Added serializer tests for verbatim_table 2016-03-22 09:23:12 +01:00
rbock
3be1ca1098 Added verbatim tables to join serialization tests 2016-03-21 09:05:55 +01:00
rbock
aceede57eb Fixed outer-tables for joins, added tests 2016-03-20 09:13:49 +01:00
rbock
0a325e4471 Added more serializer tests for where() 2016-03-20 09:13:49 +01:00
rbock
226d45d44c Added serializer tests for where() 2016-03-20 09:13:49 +01:00
rbock
9b8b2504dd Fixed narrowing warning/error 2016-03-20 09:13:49 +01:00
rbock
67bfb68f07 Added serialize tests for in() 2016-03-20 09:13:49 +01:00
rbock
b6c5cb8764 Added several serialization tests for from() and joins 2016-03-20 09:13:49 +01:00