]> git.wh0rd.org - tt-rss.git/commitdiff
filter testing fix for pgsql
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Oct 2012 13:00:18 +0000 (17:00 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 23 Oct 2012 13:00:18 +0000 (17:00 +0400)
include/functions.php

index 5588cea8d6a3a379dc845b5b0397fc5abfec7035..ccaea76ac34a5bdf2fd418db8b9fff98ac87dc39 100644 (file)
                                $filter_query_part = filter_to_sql($filter);
 
                                // Try to check if SQL regexp implementation chokes on a valid regexp
-                               $result = db_query($link, "SELECT true FROM ttrss_entries
+                               $result = db_query($link, "SELECT true AS true FROM ttrss_entries
                                        WHERE $filter_query_part LIMIT 1", false);
 
                                $test = db_fetch_result($result, 0, "true");