Browse Source

Rename DBA::any_value_fallback to DBA::anyValueFallback

pull/5431/head
Hypolite Petovan 3 years ago
parent
commit
910e832dc2
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      include/dba.php
  2. +2
    -2
      src/Database/DBA.php
  3. +1
    -1
      src/Database/DBStructure.php

+ 1
- 1
include/dba.php View 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);


+ 2
- 2
src/Database/DBA.php View 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;


+ 1
- 1
src/Database/DBStructure.php View 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";
}


Loading…
Cancel
Save