Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.match(msg, set = :all)
- find(set, :conditions => ["match(name, nicknames) against (?)", msg])
- end
- Venue Load (0.001132) SELECT * FROM `venues` WHERE (match(name, nicknames) against (' at jo\'s cafe'))
- Venue Columns (0.002631) SHOW FIELDS FROM `venues`
- Venue Load (0.000000) Mysql::Error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '114526,17905)) LIMIT 1' at line 1: SELECT * FROM `venues` WHERE (match(name, nicknames) against (51260,114526,17905)) LIMIT 1
- EXCEPTION Mysql::Error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '114526,17905)) LIMIT 1' at line 1: SELECT * FROM `venues` WHERE (match(name, nicknames) against (51260,114526,17905)) LIMIT 1
Add Comment
Please, Sign In to add comment