Commit graph

944 commits

Author SHA1 Message Date
Mike Blume
f0c40a960c Cut 0.6.1 release 2015-06-06 18:57:39 -07:00
Michael Blume
bf7c6c67b2 Merge pull request #78 from dball/fix-parameterizable-for-nil
Fix the parameterizable protocol to include nil
2015-05-20 12:10:33 -07:00
Donald Ball
713f72cfb6 Fix the parameterizable protocol to include nil
I forgot that Object doesn't include nil on protocols.

I added test coverage demonstrating the regression, only to note that
parameterized and literal queries produce different sql for the nil
case. I believe only the former is actually valid ANSI SQL, though mysql
at least does not care.
2015-05-20 11:23:36 -04:00
Mike Blume
6e36c7c1f8 begin 0.6.1 development cycle 2015-05-10 10:00:35 -07:00
Mike Blume
900aebd80b cut 0.6.0 release 2015-05-10 09:56:54 -07:00
Mike Blume
24ec437c17 ignore .lein-repl-history 2015-05-08 16:41:50 -07:00
Mike Blume
115ac81fee Merge pull request #74 2015-05-08 16:41:11 -07:00
Mike Blume
f752de70f9 begin 0.6.0 development cycle 2015-05-08 16:38:14 -07:00
Mike Blume
0e06499aed cut 0.5.3 release 2015-05-08 16:00:38 -07:00
Mike Blume
6b64743315 add pname to *param-names* once per value
keep *params* and *param-names* at the same count
2015-05-08 14:23:28 -07:00
Michael Blume
1a4f5c0acd Merge pull request #76 from cddr/add-support-for-exists-clause
[#75] Add support for exists
2015-05-08 14:00:49 -07:00
Mike Blume
0d6eebc91a add .nrepl-port to .gitignore 2015-05-08 13:58:40 -07:00
Andy Chambers
203296149f Add support for exists 2015-04-24 08:08:13 -07:00
Mike Blume
14f9c9160f add null order work to changelog 2015-04-21 17:49:41 -07:00
Donald Ball
4bdaae39af Convert seq param values to literal sql param lists
This allows seqs to be used as param values, e.g. for IN clauses. It
also converts sets to seqs for the same purpose.

It does not expand the parameter name when this occurs, which will lead
to a mismatch between the *param-names* and *params* collections. It is
not clear how *param-names* are intended to be used, so I have no better
fix to suggest other than repeating a seq's param name the corresponding
number of times into that collection.
2015-04-21 14:28:28 -04:00
Donald Ball
2820662f59 Apply seq to sets when converting to sql
This allows them to be used as values, e.g. for in clauses, as
demonstrated in the test.
2015-04-20 23:40:59 -04:00
Michael Blume
53b37c1c10 Merge pull request #72 from dball/document-locking-selects
Document locking selects
2015-04-19 19:00:19 -07:00
Donald Ball
da88383cc0 Document locking selects 2015-04-19 21:57:44 -04:00
Mike Blume
72784452b9 Merge remote-tracking branch 'dball/support-locking-selects' into HEAD 2015-04-17 14:25:23 -07:00
Michael Blume
198115fb84 Merge pull request #69 from mishok13/nulls-first-last-in-order-by
NULL order specification support
2015-04-17 14:20:23 -07:00
Michael Blume
bc8d2414cf Merge pull request #71 from dball/backfill-changes
Backfill the recent commits into the CHANGELOG
2015-04-17 13:59:16 -07:00
Donald Ball
43f8d5010f Backfill the recent commits into the CHANGELOG
This helps dependent projects review their integration to determine if
any need to be changed when they update honeysql.
2015-04-17 15:59:45 -04:00
Donald Ball
bc0b7e904f Support locking selects
This will need documentation before being merged.
2015-04-17 15:15:23 -04:00
Andrii V. Mishkovskyi
500b55775e Handle :nulls-first and :nulls-last in order-by
This commit implements NULLS (FIRST | LAST) in ORDER BY clause, as
introduced by SQL:2003, link to grammar specification:
http://savage.net.au/SQL/sql-2003-2.bnf.html#sort%20specification%20list

Only PostgreSQL 8.4+ and Oracle 10+ support said feature as of
currently.
2015-04-17 12:33:30 +02:00
Andrii V. Mishkovskyi
7160b4b1ad Adding tests for expected behavior 2015-04-17 12:29:20 +02:00
Andrii V. Mishkovskyi
04f0447c92 Corrected README example 2015-04-17 12:09:50 +02:00
Andrii V. Mishkovskyi
11d4ff37ec Adding a comment for future reference 2015-04-16 21:23:19 +02:00
Andrii V. Mishkovskyi
76303c2ffe Adding example of what I'm trying to achieve in the README 2015-04-16 20:21:21 +02:00
Michael Blume
dd47f9a0d2 Merge pull request #68 from loganmhb/sql-array
Sql array
2015-04-15 09:50:07 -07:00
Logan Buckley
f5c111a1be Simplify -to-sql. 2015-04-15 10:39:33 -05:00
Logan Buckley
33ae0c4239 Remove unused require. 2015-04-15 10:37:46 -05:00
Logan Buckley
84387afaa5 Add SqlArray type and reader literal support. 2015-04-15 10:29:34 -05:00
Andrii V. Mishkovskyi
1ff93eb964 Adding stubs for future support of NULLS FIRST/LAST 2015-04-15 17:01:05 +02:00
Mike Blume
f410aed5a1 use a for loop
bit more readable
2015-04-01 12:32:42 -07:00
Niels van Klaveren
0803225582 Added DELETE clause that takes a FROM clause
Makes T-SQL join deletes possible
2015-04-01 12:28:00 -07:00
Mike Blume
3b74d14e32 begin 0.5.3 development cycle 2015-03-31 10:44:43 -07:00
Mike Blume
d8eece3e01 cut 0.5.2 release 2015-03-31 10:41:07 -07:00
Michael Blume
a7f331fd4a Merge pull request #65 from MichaelBlume/value
Provide a wrapper to prevent maps/vectors from being read as subqueries
2015-03-31 10:33:51 -07:00
Mike Blume
0c89c0362e add value test 2015-03-31 10:32:48 -07:00
Mike Blume
d74f2d2437 Allow maps/vectors not to be read as subqueries 2015-03-26 22:59:47 -07:00
Mike Blume
48c501d2c4 break out SqlParam as its own ToSql instance 2015-03-26 22:23:16 -07:00
Mike Blume
a996b93dd3 pull out a couple helpers for param logic 2015-03-26 22:23:14 -07:00
Howard M. Lewis Ship
a48ea1c4d2 Give an example of where combining terms using and 2015-03-24 17:31:07 -07:00
Howard M. Lewis Ship
921bb8f362 Add missing close bracket to insert-into example 2015-03-17 09:22:05 -07:00
Michael Blume
49096b59a4 Merge pull request #57 from MichaelBlume/avoid-reflection
avoid reflection
2015-03-16 12:45:55 -07:00
Mike Blume
ae7d42bd32 use case instead of condp 2015-03-16 12:32:30 -07:00
Mike Blume
c97f9a3a9d avoid reflection 2015-03-15 23:32:41 -07:00
Mike Blume
ee227d7cd1 also ignore signed pom 2015-03-15 22:34:59 -07:00
Michael Blume
4add0b49e2 Merge pull request #55 from MichaelBlume/params-merge
support postgres-native parameters
2015-03-15 22:29:50 -07:00
Michael Blume
7f5011679c Merge pull request #56 from MichaelBlume/build-badges
add build badges to readme
2015-03-15 18:37:33 -07:00