From b9d37f27d2f3eb70f6ef0d2fb50d6eb955a8a2ea Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Thu, 19 May 2011 15:37:55 +0200 Subject: [PATCH] Replace broken ANSI string concatenation with concat() function --- libraries/database_interface.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index e10e6053bb..757ffca542 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -836,11 +836,11 @@ function PMA_DBI_get_columns($database, $table, $full = false, $link = null) column_name AS `Field`, (CASE WHEN character_maximum_length > 0 - THEN lower(data_type) || ('(' || (character_maximum_length || ')')) + THEN concat(lower(data_type), '(', character_maximum_length, ')') WHEN numeric_precision > 0 OR numeric_scale > 0 - THEN lower(data_type) || ('(' || (numeric_precision || (',' || (numeric_scale || ')')))) + THEN concat(lower(data_type), '(', numeric_precision, ',', numeric_scale, ')') WHEN enum_values IS NOT NULL - THEN lower(data_type) || ('(' || (enum_values || ')')) + THEN concat(lower(data_type), '(', enum_values, ')') ELSE lower(data_type) END) AS `Type`, " . ($full ? " -- 2.11.4.GIT