aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/offset.rb11
-rw-r--r--lib/arel/nodes/select_statement.rb3
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/arel/nodes/offset.rb b/lib/arel/nodes/offset.rb
new file mode 100644
index 0000000000..baa4068d93
--- /dev/null
+++ b/lib/arel/nodes/offset.rb
@@ -0,0 +1,11 @@
+module Arel
+ module Nodes
+ class Offset
+ attr_accessor :value
+
+ def initialize value
+ @value = value
+ end
+ end
+ end
+end
diff --git a/lib/arel/nodes/select_statement.rb b/lib/arel/nodes/select_statement.rb
index a96c02a545..6272fd126d 100644
--- a/lib/arel/nodes/select_statement.rb
+++ b/lib/arel/nodes/select_statement.rb
@@ -2,13 +2,14 @@ module Arel
module Nodes
class SelectStatement
attr_reader :cores
- attr_accessor :limit, :orders, :lock
+ attr_accessor :limit, :orders, :lock, :offset
def initialize cores = [SelectCore.new]
@cores = cores
@orders = []
@limit = nil
@lock = nil
+ @offset = nil
end
def initialize_copy other