aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/window.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add missing hash, eql?, == to various node classesMaxime Lapointe2017-07-251-0/+1
| | | | | | | | | | | Some of the nodes classes are missing either one or many of the common comparison methods #hash, #eql? and #==. This makes comparision and working with the ast sometimes painful, as equality or operations likes array differences (which uses a hash behind the scene) produces unexpected results. A test has been added that ensures that every descendants of Node: * have all 3 methods * that all 3 methods were defined from the same class * that the class defining all 3 is also a descendant of Node, to avoid the default ones that rely on identity only
* Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-131-0/+1
|
* Windowing: Calling #rows or #range should assign framing only once.Alexander Staubo2014-06-221-2/+10
|
* Windowing support for PARTITION BY clause.Alexander Staubo2014-06-201-2/+13
|
* Remove deprecated Arel::ExpressionRafael Mendonça França2014-02-101-1/+0
|
* Add equality to ALL THE THINGS (that matter)Ernie Miller2012-08-181-1/+29
| | | | | | | | | | | | 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
* Remove ArgumentError.Jon Leighton2012-07-131-2/+1
| | | | | | | | | | It is untested. There is no `@frame` variable. Presumably it is supposed to be `@framing`, but changing that shows that some of the tests *are* setting frame twice. I don't see why this level of strictness is necessary. If someone disagrees, they should add a test for this behaviour and make the other tests pass.
* Support ANSI SQL2003 window functions.Alexander Staubo2012-02-221-0/+78