Commit Graph

22 Commits

Author SHA1 Message Date
Brian Hempel c7f0cfd22f Version bump 1.3.0 (Ready for Rails 5.2!) 2018-01-14 17:29:39 -06:00
Gleb Mazovetskiy dec1205c14
Rails 5.2 support (#19)
Since Rails 5.2, binds are maintained only in the Arel AST.
2018-01-14 20:59:37 +00:00
Brian Hempel 8695300f26 Changelog/version bump 1.2.0 - Rails 5.0 compatibility, no functionality changes 2016-06-26 19:26:40 -05:00
Gleb Mazovetskiy 5a47ade141 Support Rails 5 2016-06-26 19:26:38 -05:00
Brian Hempel 5fe15749db Version bump 1.1.1 2016-03-19 22:36:21 -05:00
Elias Fradelos fe7e0a5885 ordering matters 2016-03-19 22:30:55 -05:00
Elias Fradelos eac87a82d0 Fixed Issue with polymorphic relations 2016-03-19 22:30:55 -05:00
Brian Hempel d2517438e6 Better table name quoting.
Ensures that table names are quoted in a db-specific way; e.g. MySQL
uses `backticks` to quote.
2016-03-19 20:48:12 -05:00
Brian Hempel 2c21d6246a Obsessive hash value alignment 2016-03-19 20:48:12 -05:00
Brian Hempel c25cdd0e51 Don’t want multi-relation syntax for now.
Don’t want to support a.union(b, c) until we can reliably make queries
that look like `a UNION b UNION c` instead of `(a UNION b) UNION c`.
2016-03-19 20:48:12 -05:00
Oded Niv c034640e90 union with multiple relations at once, quote table name 2016-03-19 20:48:11 -05:00
Brian Hempel 583cdf6d5c Version bump 1.1.0 2015-03-29 21:46:32 -04:00
Brian Hempel 08d97ad695 Refactor a bit (in anticipation of more set operations) 2015-03-29 21:16:48 -04:00
pic 609652e9fd Added #union_all 2015-03-29 20:46:17 -04:00
Brian Hempel c48fa04dfc Version bump 1.0.1 2014-09-01 22:52:04 -04:00
Brian Hempel 20f3a2cf14 Allow ORDER BY in UNION sub-selects (for databases that support it)
ORDER BY before a UNION can make a difference, for example if you’re doing a DISTINCT query
2014-09-01 17:08:56 -04:00
Brian Hempel db1e335ac2 Make sure syntax doesn’t throw error in SQLite 2014-09-01 17:07:37 -04:00
Brian Hempel 1ad82d27c0 Unscoped relation should not have bind values 2014-07-24 10:59:33 -04:00
Brian Hempel feb472329c Version bump 1.0.0 2014-07-24 10:40:58 -04:00
Brian Hempel ccd66792f2 Don’t put default scope conditions after the UNION
It will be handled inside the union.
2014-07-24 10:40:38 -04:00
Brian Hempel 2933176f82 Hmmm, I don't think a default scope will have bind values, but just in case... 2014-07-20 00:26:03 -04:00
Brian Hempel 00e0a8795c Everything! 2014-07-19 23:45:17 -04:00