# File lib/arel/engines/sql/compilers/ibm_db_compiler.rb, line 42
42: def add_limit_on_delete(taken)
43: raise "IBM_DB does not support limit on deletion" # Limiting the number of rows to be deleted is not supported by IBM_DB
44: end
# File lib/arel/engines/sql/compilers/ibm_db_compiler.rb, line 34
34: def limited_update_conditions(conditions, taken)
35: quoted_primary_key = engine.quote_table_name(primary_key)
36: update_conditions = "WHERE #{quoted_primary_key} IN (SELECT #{quoted_primary_key} FROM #{engine.connection.quote_table_name table.name} #{conditions} " #Note: - ')' not added, limit segment is to be appended
37: engine.add_limit_offset!(update_conditions,{:limit=>taken,:offset=>nil})
38: update_conditions << ")" # Close the sql segment
39: update_conditions
40: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.