From: Hypolite Petovan Date: Sat, 21 Jul 2018 01:58:30 +0000 (-0400) Subject: Rename DBA::any_value_fallback to DBA::anyValueFallback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=910e832dc28f6fcedf31ba4456888221612fd1da;p=friendica.git Rename DBA::any_value_fallback to DBA::anyValueFallback --- diff --git a/include/dba.php b/include/dba.php index 57a277f340..4b7fb8009e 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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); diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 1512770045..79c4422718 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -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; diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 20865bfc4b..d0db9e572e 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -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"; }