From 3c9f4be465126051d4a5230ada3dfea87d435fcd Mon Sep 17 00:00:00 2001 From: Praveen Devarao Date: Thu, 25 Feb 2010 14:35:16 +0530 Subject: raise an error if limit for deletion is specified while using IBM_DB Signed-off-by: Emilio Tagua --- lib/arel/engines/sql/compilers/ibm_db_compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3