linuxlewis / djorm-ext-pgfulltext

PostgreSQL full-text search integration with django orm.
Other
250 stars 84 forks source link

Fix for empty search_vector #71

Closed CGenie closed 8 years ago

CGenie commented 8 years ago

Sometimes it might happen that the search vector is empty (like when the 'search_index' tuple is empty). In this case the SQL was incorrect: SET search_index = WHERE ... This commit fixes the above SQL to SET search_index = '' WHERE ...

linuxlewis commented 8 years ago

:+1: