(bug 19571) Override buildConcat for SQLite.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 13 Jul 2009 21:56:24 +0000 (21:56 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Mon, 13 Jul 2009 21:56:24 +0000 (21:56 +0000)
RELEASE-NOTES
includes/db/DatabaseSqlite.php

index bfe4c20..769c8b7 100644 (file)
@@ -250,6 +250,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Removed repetition of URIs in the title attributes of external links.
 * (bug 19693) User name is now escaped in "Contributions for ..." link on
   Special:BlockIP
+* (bug 19571) Override buildConcat for SQLite.
 
 == API changes in 1.16 ==
 
index 18a2f06..ccc29a2 100644 (file)
@@ -455,6 +455,13 @@ class DatabaseSqlite extends DatabaseBase {
        public function lockTables( $read, $write, $method ) {}
 
        public function unlockTables( $method ) {}
+       
+       /*
+        * Build a concatenation list to feed into a SQL query
+        */
+       function buildConcat( $stringList ) {
+               return implode( ' || ', $stringList );
+       }
 
 } // end DatabaseSqlite class