From c6d572f73e8357f4afaf4b499b1522cbff3f6041 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 4 May 2016 09:09:41 +0200 Subject: [PATCH] Oracle and postgre sql cache changes TICKETS #3581 --- pandora_console/include/db/oracle.php | 2 +- pandora_console/include/db/postgresql.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/db/oracle.php b/pandora_console/include/db/oracle.php index 89f0d0f73c..a651eeffa7 100644 --- a/pandora_console/include/db/oracle.php +++ b/pandora_console/include/db/oracle.php @@ -336,7 +336,7 @@ function oracle_db_process_sql($sql, $rettype = "affected_rows", $dbconnection = } if ($cache === true) - $sql_cache[$sql] = $retval; + $sql_cache[$sql_cache['id']][$sql] = $retval; oci_free_statement ($query); } } diff --git a/pandora_console/include/db/postgresql.php b/pandora_console/include/db/postgresql.php index 0bc8d20774..4b1709a55f 100644 --- a/pandora_console/include/db/postgresql.php +++ b/pandora_console/include/db/postgresql.php @@ -259,7 +259,7 @@ function postgresql_db_process_sql($sql, $rettype = "affected_rows", $dbconnecti } if ($cache === true) - $sql_cache[$sql] = $retval; + $sql_cache[$sql_cache['id']][$sql] = $retval; pg_free_result ($result); } }