diff options
author | Alexander Staubo <alex@origo.no> | 2012-02-22 15:25:10 +0100 |
---|---|---|
committer | Alexander Staubo <alex@origo.no> | 2012-02-22 15:25:10 +0100 |
commit | a1a6fbc189d0cb8c44606eafcb8bda7a010554c0 (patch) | |
tree | 05bb006e6a5b39e5796d5eae302642c169ba7d5b /lib/arel/select_manager.rb | |
parent | 6e427e589820278908e7a746749eb9b79b0f85e3 (diff) | |
download | rails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.tar.gz rails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.tar.bz2 rails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.zip |
Support ANSI SQL2003 window functions.
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r-- | lib/arel/select_manager.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 32f833f686..d20faa6eb3 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -126,6 +126,12 @@ module Arel self end + def window name + window = Nodes::NamedWindow.new(name) + @ctx.windows.push window + window + end + def project *projections # FIXME: converting these to SQLLiterals is probably not good, but # rails tests require it. |