diff options
author | Pierre Paridans <pierre@paridans.org> | 2013-03-03 16:18:59 +0100 |
---|---|---|
committer | Pierre Paridans <pierre@paridans.com> | 2014-09-16 22:26:35 +0200 |
commit | 7b75711ef85e80ad3ed03d51b555dd65697017ec (patch) | |
tree | 640f625ccd0e056cd25bb3335f09aee5035eadc1 /lib/arel/visitors/informix.rb | |
parent | 46f94aca3f648cf9a350cbe829f8d155d9af8739 (diff) | |
download | rails-7b75711ef85e80ad3ed03d51b555dd65697017ec.tar.gz rails-7b75711ef85e80ad3ed03d51b555dd65697017ec.tar.bz2 rails-7b75711ef85e80ad3ed03d51b555dd65697017ec.zip |
Informix versions < 10 use 'FIRST' keyword instead of 'LIMIT'
Still supported in versions 10+
Diffstat (limited to 'lib/arel/visitors/informix.rb')
-rw-r--r-- | lib/arel/visitors/informix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/informix.rb b/lib/arel/visitors/informix.rb index 8de05f60f6..7e8a3ea458 100644 --- a/lib/arel/visitors/informix.rb +++ b/lib/arel/visitors/informix.rb @@ -41,7 +41,7 @@ module Arel visit o.expr, collector end def visit_Arel_Nodes_Limit o, collector - collector << "LIMIT " + collector << "FIRST " visit o.expr, collector collector << " " end |