diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-14 22:06:36 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-14 22:06:36 +0100 |
commit | 163d8e62433eb6d0d14910525d4900aab57de567 (patch) | |
tree | a4e9c1bf8f73c0a77437f5ffa3b8195eed1f158f /web/lib | |
parent | e1030956905cae34c281281347555ad3eebae5ab (diff) | |
download | taginfo-163d8e62433eb6d0d14910525d4900aab57de567.tar taginfo-163d8e62433eb6d0d14910525d4900aab57de567.tar.gz |
Fix language comparison table
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/v4/keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/api/v4/keys.rb b/web/lib/api/v4/keys.rb index 3232b95..d715656 100644 --- a/web/lib/api/v4/keys.rb +++ b/web/lib/api/v4/keys.rb @@ -155,7 +155,7 @@ class Taginfo < Sinatra::Base condition_if("key LIKE '%' || ? || '%'", params[:query]). get_first_value().to_i - res = @db.select('SELECT key, langs FROM wiki.wikipages_keys'). + res = @db.select("SELECT key, coalesce(langs, '') AS langs FROM wiki.wikipages_keys"). condition_if("key LIKE '%' || ? || '%'", params[:query]). order_by(@ap.sortname, @ap.sortorder){ |o| o.key |