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

10 commits

Author SHA1 Message Date
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
Ernie Miller
c78227d9b2 Include Predications in Grouping
Also, removed unused ordering.rb file, since it is identical
to the one being created in unary.rb already, and isn't
required anywhere.
2012-05-19 11:10:47 -04:00
Ernie Miller
ba3578a22f Break Ordering into Ascending/Descending nodes, allow reversal 2011-06-15 09:18:26 -04:00
Aaron Patterson
0b9af9762a adding Distinct ON node 2011-04-21 15:46:24 -05:00
Aaron Patterson
cae83ce964 adding a DISTINCT node 2011-04-21 15:28:21 -05:00
Aaron Patterson
d7ed2338b1 adding a Bin node to emit mysql BINARY keywords 2011-04-11 10:02:28 -07:00
Aaron Patterson
8ed3ab00f1 Lock should be a unary node 2011-02-21 15:14:29 -08: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
Aaron Patterson
d4bfaf2b82 cleaning up more nodes 2010-12-14 20:53:19 -08:00
Aaron Patterson
963ca860d5 adding unary node 2010-11-29 14:38:45 -08:00