From f503c79a356e2f407ed237ea4bde5b75c17f227b Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 4 Aug 2014 11:38:00 +0000 Subject: [PATCH] 2014-08-04 Miguel de Dios * include/config_process.php: added global config var for the quote strings (for example, PostgreSQL). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/config_process.php | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 89872c1e79..391c4ad066 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-08-04 Miguel de Dios + + * include/config_process.php: added global config var for the + quote strings (for example, PostgreSQL). + 2014-08-03 Junichi Satoh * include/functions_ui.php: Fixed that the fast forward and the going diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index d446ba21a8..4e69340d84 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -254,6 +254,9 @@ $config["homeurl"] = ui_get_full_url(false); //====================================================================== switch ($config["dbtype"]) { case "mysql": + if (!isset($config['quote_string'])) { + $config['db_quote_string'] = "\""; + } break; case "postgresql": if (!isset($config['dbversion'])) { @@ -262,6 +265,9 @@ switch ($config["dbtype"]) { $config['dbversion'] = $result_chunks[1]; } + if (!isset($config['quote_string'])) { + $config['db_quote_string'] = "'"; + } break; case "oracle": break;