]> git.mxchange.org Git - friendica.git/commitdiff
Rename DBA::any_value_fallback to DBA::anyValueFallback
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 21 Jul 2018 01:58:30 +0000 (21:58 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Jul 2018 23:27:34 +0000 (19:27 -0400)
include/dba.php
src/Database/DBA.php
src/Database/DBStructure.php

index 57a277f3407a8223a45414313e51af785ab466ce..4b7fb8009ed75ee6e1b7a0eba736bf927a6e9654 100644 (file)
@@ -29,7 +29,7 @@ function q($sql) {
        }
 
        $sql = DBA::clean_query($sql);
-       $sql = DBA::any_value_fallback($sql);
+       $sql = DBA::anyValueFallback($sql);
 
        $stmt = @vsprintf($sql, $args);
 
index 1512770045b960dd1a731f43dd56c56c5f6f3ba2..79c4422718c6057fb9280a011472ceb19451b42d 100644 (file)
@@ -288,7 +288,7 @@ class DBA
         * @param string $sql An SQL string without the values
         * @return string The input SQL string modified if necessary.
         */
-       public static function any_value_fallback($sql) {
+       public static function anyValueFallback($sql) {
                $server_info = self::server_info();
                if (version_compare($server_info, '5.7.5', '<') ||
                        (stripos($server_info, 'MariaDB') !== false)) {
@@ -397,7 +397,7 @@ class DBA
                }
 
                $sql = self::clean_query($sql);
-               $sql = self::any_value_fallback($sql);
+               $sql = self::anyValueFallback($sql);
 
                $orig_sql = $sql;
 
index 20865bfc4bb10337ada49451d1c5663ed75381cb..d0db9e572ebf9afc55bbdeed7ab64c92ec56cfb2 100644 (file)
@@ -460,7 +460,7 @@ class DBStructure
                                                if ($ignore != "") {
                                                        echo "SET session old_alter_table=0;\n";
                                                } else {
-                                                       echo "INSERT INTO `".$temp_name."` SELECT ".DBA::any_value_fallback($field_list)." FROM `".$name."`".$group_by.";\n";
+                                                       echo "INSERT INTO `".$temp_name."` SELECT ".DBA::anyValueFallback($field_list)." FROM `".$name."`".$group_by.";\n";
                                                        echo "DROP TABLE `".$name."`;\n";
                                                        echo "RENAME TABLE `".$temp_name."` TO `".$name."`;\n";
                                                }