searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Does not work with Ruby 1.9.1

Open jaycode opened this issue 15 years ago • 0 comments

The search shows something like: SELECT birds.* FROM birds INNER JOIN bird_sizes ON bird_sizes.id = birds.bird_size_id INNER JOIN bird_shapes ON bird_shapes.id = birds.bird_shape_id INNER JOIN bird_types ON bird_types.id = birds.bird_type_id INNER JOIN bird_families ON bird_families.id = birds.bird_family_id WHERE ((birds.common_name LIKE '%["winter"]%') OR (birds.latin_name LIKE '%["winter"]%') OR (bird_families.name LIKE '%["winter"]%') OR (bird_types.description LIKE '%["winter"]%') OR (bird_shapes.name LIKE '%["winter"]%') OR (bird_sizes.size LIKE '%["winter"]%')) ORDER BY birds.id ASC LIMIT 0, 25

in ruby 1.9.1 (note the %[")

works perfectly with 1.8.7

jaycode avatar Mar 29 '10 17:03 jaycode