1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Sean Griffin
aac9da257f Change the interface of having to match that of where
These two clauses have nearly identical semantics with regards to how
they would be constructed as an AST. It doesn't make sense for their
interfaces to be separate.
2015-01-27 09:52:54 -07:00
Aaron Patterson
5b1d2d80d3 call super from initialize 2013-05-17 15:43:54 -07:00
Ernie Miller
6e638bba59 Add equality to ALL THE THINGS (that matter)
People are often trying to use ARel nodes inside ActiveRecord, and when
they do so, lots of things can break, because ActiveRecord relies on
Array#uniq and sometimes hash key equality to handle values that end up
in wheres, havings, etc. By implementing equality for all the nodes, we
should hopefully be able to prevent any nodes (even nodes containing
other nodes) from failing an equality check they should otherwise pass,
and alleviate many of these errors.

Fixes #130
2012-08-18 22:33:25 -04:00
Alexander Staubo
a1a6fbc189 Support ANSI SQL2003 window functions. 2012-02-22 15:25:10 +01:00
Aaron Patterson
cae83ce964 adding a DISTINCT node 2011-04-21 15:28:21 -05:00
Aaron Patterson
d4259c5ce2 Merge branch '2-0-stable' into merge
* 2-0-stable:
  updating history
  Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James Abley (https://github.com/jabley/arel).
  consolidating dot visitor methods
  refactoring where, fixing subselect
  implementation for passing a subquery to #in and #not_in
  tests for passing a subquery to #in and #not_in
  limit members of the AST are visited
  quoting limit nodes

Conflicts:
	History.txt
	lib/arel/nodes.rb
	lib/arel/nodes/select_core.rb
	lib/arel/select_manager.rb
	lib/arel/visitors/to_sql.rb
	test/visitors/test_to_sql.rb
2011-01-03 10:31:25 -08:00
Viacheslav Petrenko
1a246f7161 Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James Abley (https://github.com/jabley/arel). 2011-01-03 10:18:02 -08:00
Aaron Patterson
a75ed56934 fixing typo, thanks @devwout 2010-12-21 10:51:28 -08:00
Aaron Patterson
9653da3c79 adding a join source node 2010-12-14 09:43:19 -08:00
Aaron Patterson
9a5b5e5336 converting froms to from 2010-12-07 14:20:30 -08:00
Aaron Patterson
44faa8e7fc adding ancestor test 2010-11-29 15:23:58 -08:00
Aaron Patterson
b95deec5c7 from does not need to be a list 2010-09-20 14:27:34 -07:00
Aaron Patterson
9d95e7d3c1 totally lame, but arel expects FROM to only be one item 2010-09-12 19:49:02 -07:00
Aaron Patterson
cb6d13877c adding having nodes 2010-09-08 15:29:22 -07:00
Aaron Patterson
6e05eef9e9 group nodes are working! 2010-09-07 15:47:38 -07:00
Mike Dalessio
4e1dd7eeab deep copies of statements aren't necessary. shallow copy the top-level arrays. 2010-08-30 18:35:13 -04:00
Mike Dalessio
6b056ef108 SelectCore deep copies attributes 2010-08-19 01:38:09 -04:00
Aaron Patterson
e573a9ea46 limits are added 2010-08-12 21:21:20 -07:00
Renamed from lib/arel/nodes/select.rb (Browse further)