return false;
}
- $sql = DBA::clean_query($sql);
+ $sql = DBA::cleanQuery($sql);
$sql = DBA::anyValueFallback($sql);
$stmt = @vsprintf($sql, $args);
* @param string $sql An SQL string without the values
* @return string The input SQL string modified if necessary.
*/
- public static function clean_query($sql) {
+ public static function cleanQuery($sql) {
$search = ["\t", "\n", "\r", " "];
$replace = [' ', ' ', ' ', ' '];
do {
logger('Parameter mismatch. Query "'.$sql.'" - Parameters '.print_r($args, true), LOGGER_DEBUG);
}
- $sql = self::clean_query($sql);
+ $sql = self::cleanQuery($sql);
$sql = self::anyValueFallback($sql);
$orig_sql = $sql;
$parameters['comment'] = "";
}
- $current_field_definition = DBA::clean_query(implode(",", $field_definition));
- $new_field_definition = DBA::clean_query(implode(",", $parameters));
+ $current_field_definition = DBA::cleanQuery(implode(",", $field_definition));
+ $new_field_definition = DBA::cleanQuery(implode(",", $parameters));
if ($current_field_definition != $new_field_definition) {
$sql2 = self::modifyTableField($fieldname, $parameters);
if ($sql3 == "") {