Make generalizeSQL() protected
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 4 Oct 2015 09:48:55 +0000 (02:48 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 4 Oct 2015 09:48:55 +0000 (02:48 -0700)
Change-Id: Ib1317576b82993adf5ae454f9ecd8bd148a58cc9

includes/db/Database.php

index 4bbb491..ab61408 100644 (file)
@@ -1756,7 +1756,7 @@ abstract class DatabaseBase implements IDatabase {
         *
         * @return string
         */
-       static function generalizeSQL( $sql ) {
+       protected static function generalizeSQL( $sql ) {
                # This does the same as the regexp below would do, but in such a way
                # as to avoid crashing php on some large strings.
                # $sql = preg_replace( "/'([^\\\\']|\\\\.)*'|\"([^\\\\\"]|\\\\.)*\"/", "'X'", $sql );