Skip to content

Commit

Permalink
Fix syntax error in auto-complete SQL, take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Sep 8, 2017
1 parent 73d9575 commit 509c822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/zotero-autocomplete.js
Expand Up @@ -106,11 +106,11 @@ ZoteroAutoComplete.prototype.startSearch = Zotero.Promise.coroutine(function* (s
var sql = 'SELECT '
+ 'jurisdictionName AS val, jurisdictionID AS comment '
+ 'FROM jurisdictions '
+ "WHERE jurisdictionID NOT LIKE '%:%' "
+ "WHERE jurisdictionID NOT LIKE ? "
+ 'AND jurisdictionName LIKE ? '
+ 'GROUP BY jurisdictionID '
+ 'LIMIT 100'
var sqlParams = [ searchString + '%'];
+ 'LIMIT 100;'
var sqlParams = ['%:%', searchString + '%'];
//statement = this._zotero.DB.getStatement(sql, sqlParams);
break;

Expand Down

0 comments on commit 509c822

Please sign in to comment.