forked from oscurrency/oscurrency
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Which means you're out of luck if searching for a person with an Irish last name...
Request:
- URL : http://timebank.sfbace.org/searches?q=pam+O%27dea
- Parameters: {"action"=>"index", "q"=>"pam O'dea", "controller"=>"searches"}
- Rails root: /app
A ActiveRecord::StatementInvalid occurred in searches#index:
PGError: ERROR: syntax error in tsquery: "'pam' & 'O'dea'"
: SELECT people.*, ts_rank_cd((to_tsvector('english', coalesce("people"."name", '') || ' ' || coalesce("people"."description", ''))),
to_tsquery('''pam'' & ''O''dea''')) as rank FROM "people" WHERE (to_tsvector('english', coalesce("people"."name", '') || ' ' || coalesce("people"."description", '')) @@ to_tsquery('''pam'' & ''O''dea''')) ORDER BY rank DESC
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log'
Metadata
Metadata
Assignees
Labels
No labels