Felipe Lessa
88d0202000
Improve groupBy doc.
2015-05-12 12:51:47 -03:00
Felipe Lessa
b20fe09755
Fix valkey's documentation.
2015-05-12 12:39:38 -03:00
Felipe Lessa
5763a9d963
Fix comment about JOIN fixity.
2015-05-12 12:34:58 -03:00
Felipe Lessa
e4ccc4ecdc
Fix markup for backticks ` and double quotes " on Haddocks.
...
Actually, the old form of backticks works on my Haddock, but somehow
doesn't on Hackage's Haddock. This second form is still valid although
ugly, and works on my Haddock as well. From reading Haddock's
documentation and source code, I don't think there's a canonical way of
writing this markup.
2015-05-12 12:32:45 -03:00
Felipe Lessa
da5f8240c7
Remove beta warning (wat?).
2015-05-12 12:13:15 -03:00
Felipe Lessa
49cab1a4da
Silently migrate on PostgreSQL.
2015-04-28 00:19:10 -03:00
Felipe Lessa
f3f5166d8b
Update cleanDB with current entities.
2015-04-28 00:15:46 -03:00
Felipe Lessa
dfacfcecf6
Fix test suite compilation for PostgreSQL.
2015-04-27 23:55:48 -03:00
Felipe Lessa
c8ee46f702
Bump version to 2.2.
2015-04-27 17:02:19 -03:00
Felipe Lessa
a79144326a
Merge pull request #97 from Philonous/joins
...
fix rendering of joins
2015-04-27 17:01:11 -03:00
Felipe Lessa
bdea64c289
Merge pull request #96 from Philonous/master
...
Don't match on clauses with cross joins
2015-04-21 15:43:43 -03:00
Philipp Balzarek
451beb9a55
add a test case for #97
2015-04-21 20:04:18 +02:00
Philipp Balzarek
603023a579
don't match on clauses with cross joins
2015-04-21 19:37:36 +02:00
Philipp Balzarek
b0b40a07ff
make join constructors left-associative
2015-04-21 18:52:26 +02:00
Philipp Balzarek
da40706163
fix rendering of joins
2015-04-21 18:51:32 +02:00
Felipe Lessa
2f70220d55
Merge remote-tracking branch 'aherrmann/pr_coalesce_subquery'
2015-04-10 23:29:38 -03:00
Felipe Lessa
5b33da2c2d
Merge remote-tracking branch 'frontrowed/add-lower'
2015-04-10 23:25:20 -03:00
Felipe Lessa
45ccbf383f
Bump version to 2.1.3.
2015-04-10 23:23:13 -03:00
Felipe Lessa
e8d85285cb
A bunch of cleanups (ping @albertov).
2015-04-10 23:22:19 -03:00
Alberto Valverde
82bb9d5597
test we can join via non-id primary keys
2015-04-10 10:51:45 +02:00
Alberto Valverde
d3e45964ae
use toPersistValue to simplify PersistValue creation
2015-04-10 10:34:16 +02:00
Alberto Valverde
f056f88088
added test for 48cae53
2015-04-10 10:33:24 +02:00
Alberto Valverde
02fa5350fe
bumped up dependency on the lowest persistent version we need
2015-04-10 10:06:34 +02:00
Alexandr Kurilin
b46c52d7b2
Add support for lower() function
2015-04-03 16:29:17 -07:00
Alberto Valverde
48cae5396e
allow returning custom id columns from queries if they're not composite
2015-04-01 19:06:10 +02:00
Alberto Valverde
12a2d2de2b
Merge branch 'master' of https://github.com/prowdsponsor/esqueleto
...
Conflicts:
esqueleto.cabal
2015-04-01 16:32:26 +02:00
Felipe Lessa
8b67bf9640
Bump version to 2.1.2.3.
2015-04-06 23:43:58 -03:00
Felipe Lessa
41d4cb283a
GHC 7.10.
2015-04-06 23:37:48 -03:00
Michael Snoyman
69a4ec0c44
Fix test suite for new SqliteException
...
Sorry for the breakage @meteficha, and hope you don't mind that I'm
deploying this to Hackage.
2015-03-29 08:29:49 +03:00
Andreas Herrmann
0d76e0e090
added test: coalesceDefault with sub_select
...
The generated SQL code needs to wrap the sub-query in an extra pair of
parentheses.
I.e. the following is invalid SQL:
COALESCE( SELECT ... , ... )
This is the correct syntax:
COALESCE( (SELECT ...) , ... )
2015-02-27 23:12:32 +01:00
Andreas Herrmann
f22a11d989
Fix coalesce/coalesceDefault for sub-queries
...
If COALESCE has a sub-query as an argument, then this sub-query needs to remain
wrapped in an extra pair of parentheses.
2015-02-27 23:12:32 +01:00
Alberto Valverde
9efc909f49
Moved non-id/composite pk tests to their corresponding specs and marked failing tests as "pending"
2015-01-05 17:35:00 +01:00
Alberto Valverde
45295039e0
fixed most warnings. Implemented orderBy for composite pks. Added a failing test for returning a composite pk from a query
2014-12-30 12:33:36 +01:00
Alberto Valverde
923a973abe
Removed (some) warnings
2014-12-29 18:52:01 +01:00
Alberto Valverde
ad409312cf
Support non-id primary key joins with columns not declared as ForeignKey but of ParentId type
2014-12-29 17:49:08 +01:00
Alberto Valverde
477c0a4c21
handle non-id/composite primary keys on ==. and !=.
2014-12-29 15:05:57 +01:00
Alberto Valverde
1f80074b6e
Revert "Revert "custom primary keys (not composite, yet) supported on projections""
...
This reverts commit 761ef03b03 .
2014-12-24 05:27:10 +01:00
Alberto Valverde
761ef03b03
Revert "custom primary keys (not composite, yet) supported on projections"
...
This reverts commit 3f31f41a71 .
2014-12-23 23:57:03 +01:00
Alberto Valverde
965c7a55c7
tweaked composite key test to see if we can filter on it's composite pk. We can't, yet
2014-12-23 21:36:54 +01:00
Alberto Valverde
3f31f41a71
custom primary keys (not composite, yet) supported on projections
2014-12-23 21:24:41 +01:00
Alberto Valverde
3aa931cd78
added a second failing test to narrow down the problem. Seems that that it is not related to the entities being returned but to the join condition
2014-12-23 18:09:52 +01:00
Alberto Valverde
b8481fcea5
Added failing test when joining on custom pk
2014-12-23 15:27:37 +01:00
Alberto Valverde
0dfbf270d6
added non primary key fields to the entities used in the composite pk tests
2014-12-23 15:18:44 +01:00
Alberto Valverde
8c5511c623
bumped up version and minimum version requirement on persistent since we need the utilities defined since that version
2014-12-23 15:17:36 +01:00
Alberto Valverde
cc4844167f
Implemented support for custom/composite primary keys
2014-12-23 14:13:07 +01:00
Alberto Valverde
e22f2326e6
Added failing test case for custom primary keys ( #87 )
2014-12-23 11:53:19 +01:00
Felipe Lessa
abf91a1352
Bump version to 2.1.2.1.
2014-11-24 15:04:11 -02:00
Felipe Lessa
2d4a10c1e8
Merge pull request #84 from bermanjosh/patch-1
...
INSERT INTO SELECT typo
2014-11-24 15:02:36 -02:00
Josh Berman
8579010409
INSERT INTO SELECT typo
2014-11-17 17:19:45 +02:00
Felipe Lessa
40c4528540
Bump version to 2.1.2.
2014-11-03 12:27:46 -02:00