bulk_data_methods 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -197,7 +197,7 @@ module BulkMethodsMixin
|
|
197
197
|
where_clause = options[:where_datatable] || '"#{table_name}.id = datatable.id"'
|
198
198
|
where_constraint = ""
|
199
199
|
if options[:where_constraint]
|
200
|
-
where_constraint = " AND #{eval(options[:where_constraint])}"
|
200
|
+
where_constraint = '" AND #{eval(options[:where_constraint])}"'
|
201
201
|
end
|
202
202
|
returning = []
|
203
203
|
|
@@ -235,7 +235,7 @@ module BulkMethodsMixin
|
|
235
235
|
) as datatable
|
236
236
|
where
|
237
237
|
#{eval(where_clause)}
|
238
|
-
#{where_constraint}
|
238
|
+
#{eval(where_constraint)}
|
239
239
|
#{eval(returning_clause)}
|
240
240
|
SQL
|
241
241
|
returning += find_by_sql(sql_update_string)
|