catch blank searches when no fulltext search+example

Platform: OS X 10.5

Browser: FF 2.0.0.15

Build on localhost: 661

DB: MySQL on localhost

 

 

Action creating bug:

Search string in Search Cards field is "*"

 

Resultant error message in browser:

ActiveRecord::StatementInvalid: 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 'OR OR ) and t.trash='f' ORDER BY t.updated_at desc LIMIT 50 OFFSET 0)' at line 1: (select t.* from cards t join revisions on revisions.id=t.current_revision_id where ( OR OR ) and t.trash='f' ORDER BY t.updated_at desc LIMIT 50 OFFSET 0)
{"match":"_keyword", "sort":"relevance"}

 

Full trap of terminal output:

Verbose output from command line: [my best guess as to corresponding to bug]

 

(moved out verbose output. still accessible via history -efm)