Bug #739096
This commit is contained in:
@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-05-28 Garvin Hicking <me@supergarv.de>
|
||||||
|
* libraries/sqlvalidator.class.php3: Fix Bug #739096: Because
|
||||||
|
the PEAR library and PHP changed the way how referenced variables
|
||||||
|
get accessed, we have to pre-initialize the array and submit that
|
||||||
|
to the PEAR call() funktion.
|
||||||
|
|
||||||
2003-05-26 Michal Cihar <nijel@users.sourceforge.net>
|
2003-05-26 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* lang/czech: sorted.
|
* lang/czech: sorted.
|
||||||
|
|
||||||
|
@@ -105,7 +105,8 @@ if (!defined('PMA_SQL_VALIDATOR_CLASS_INCLUDED')) {
|
|||||||
$connection_technology, $connection_technology_version,
|
$connection_technology, $connection_technology_version,
|
||||||
$interactive)
|
$interactive)
|
||||||
{
|
{
|
||||||
$ret = $obj->call("openSession",array( "a_userName" => $username, "a_password" => $password, "a_callingProgram" => $calling_program, "a_callingProgramVersion" => $calling_program_version, "a_targetDbms" => $target_dbms, "a_targetDbmsVersion" => $target_dbms_version, "a_connectionTechnology" => $connection_technology, "a_connectionTechnologyVersion" => $connection_technology_version, "a_interactive" => $interactive));
|
$use_array = array( "a_userName" => $username, "a_password" => $password, "a_callingProgram" => $calling_program, "a_callingProgramVersion" => $calling_program_version, "a_targetDbms" => $target_dbms, "a_targetDbmsVersion" => $target_dbms_version, "a_connectionTechnology" => $connection_technology, "a_connectionTechnologyVersion" => $connection_technology_version, "a_interactive" => $interactive);
|
||||||
|
$ret = $obj->call("openSession",$use_array);
|
||||||
|
|
||||||
// This is the old version that needed the overload extension
|
// This is the old version that needed the overload extension
|
||||||
/* $ret = $obj->openSession($username, $password,
|
/* $ret = $obj->openSession($username, $password,
|
||||||
@@ -132,8 +133,8 @@ if (!defined('PMA_SQL_VALIDATOR_CLASS_INCLUDED')) {
|
|||||||
*/
|
*/
|
||||||
function _validateSQL($obj, $session, $sql, $method)
|
function _validateSQL($obj, $session, $sql, $method)
|
||||||
{
|
{
|
||||||
|
$use_array = array("a_sessionId" => $session->sessionId, "a_sessionKey" => $session->sessionKey, "a_SQL" => $sql, "a_resultType" => $this->output_type);
|
||||||
$res = $obj->call("validateSQL",array("a_sessionId" => $session->sessionId, "a_sessionKey" => $session->sessionKey, "a_SQL" => $sql, "a_resultType" => $this->output_type));
|
$res = $obj->call("validateSQL",$use_array);
|
||||||
|
|
||||||
// This is the old version that needed the overload extension
|
// This is the old version that needed the overload extension
|
||||||
// $res = $obj->validateSQL($session->sessionId, $session->sessionKey, $sql, $this->output_type);
|
// $res = $obj->validateSQL($session->sessionId, $session->sessionKey, $sql, $this->output_type);
|
||||||
|
Reference in New Issue
Block a user