BUG 8403 executeQuery() needs to support SHOW, DESCRIBE ... queries SOLVED

- If this is updated in a future version, please add WITH. Thanks!
- Addition and validation tests of the WITH clause query for Oracle.
This commit is contained in:
Hector Cortez
2012-07-23 13:16:05 -04:00
parent d2e823f028
commit d634c89f20

View File

@@ -731,7 +731,7 @@ function executeQueryOci($sql, $connection, $aParameter=array())
} }
switch (true) { switch (true) {
case preg_match("/^(SELECT|SHOW|DESCRIBE|DESC)\s/i", $sql): case preg_match("/^(SELECT|SHOW|DESCRIBE|DESC|WITH)\s/i", $sql):
$stid = oci_parse($conn, $sql); $stid = oci_parse($conn, $sql);
if (count($aParameter) > 0) { if (count($aParameter) > 0) {
foreach ($aParameter as $key => $val) { foreach ($aParameter as $key => $val) {