aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraveen Devarao <praveen@falcon>2010-02-25 14:35:16 +0530
committerEmilio Tagua <miloops@gmail.com>2010-02-25 10:59:03 -0300
commit3c9f4be465126051d4a5230ada3dfea87d435fcd (patch)
tree2994773d9a7deea2ac38a80b5ed4570981cadb98
parent4525b1ff89a84ba9be70942a3e90c913c162a839 (diff)
downloadrails-3c9f4be465126051d4a5230ada3dfea87d435fcd.tar.gz
rails-3c9f4be465126051d4a5230ada3dfea87d435fcd.tar.bz2
rails-3c9f4be465126051d4a5230ada3dfea87d435fcd.zip
raise an error if limit for deletion is specified while using IBM_DB
Signed-off-by: Emilio Tagua <miloops@gmail.com>
-rw-r--r--lib/arel/engines/sql/compilers/ibm_db_compiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/compilers/ibm_db_compiler.rb b/lib/arel/engines/sql/compilers/ibm_db_compiler.rb
index e6be73d6a1..e15e783160 100644
--- a/lib/arel/engines/sql/compilers/ibm_db_compiler.rb
+++ b/lib/arel/engines/sql/compilers/ibm_db_compiler.rb
@@ -54,7 +54,7 @@ module Arel
end
def add_limit_on_delete(taken)
- "" # Limiting the number of rows to be deleted is not supported by IBM_DB
+ raise "IBM_DB does not support limit on deletion" # Limiting the number of rows to be deleted is not supported by IBM_DB
end
end