Permalink
Browse files

raise an error if limit for deletion is specified while using IBM_DB

Signed-off-by: Emilio Tagua <miloops@gmail.com>
  • Loading branch information...
1 parent 4525b1f commit 3c9f4be465126051d4a5230ada3dfea87d435fcd Praveen Devarao committed with miloops Feb 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/arel/engines/sql/compilers/ibm_db_compiler.rb
@@ -54,7 +54,7 @@ def limited_update_conditions(conditions, taken)
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

0 comments on commit 3c9f4be

Please sign in to comment.