Commit: d864063a183653ce16a4345e5143f6e912c176fe Author: Will Fitch <[email protected]> Wed, 26 Sep 2012 12:00:17 -0400 Committer: David Soria Parra <[email protected]> Tue, 30 Oct 2012 14:32:32 +0100 Parents: d922e801ee0c7aafefd34ec7e5132981c4928918 Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d864063a183653ce16a4345e5143f6e912c176fe Log: Bug #62593 Updated to account for INOUT parameters Bugs: https://bugs.php.net/62593 Changed paths: M ext/pdo_pgsql/pgsql_statement.c Diff: diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index b9df24a..1dc0d58 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -366,7 +366,8 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data * #endif if (param->is_param) { /* We need to manually convert to a pg native boolean value */ - if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL) { + if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL && + ((param->param_type & PDO_PARAM_INPUT_OUTPUT) != PDO_PARAM_INPUT_OUTPUT)) { SEPARATE_ZVAL(¶m->parameter); param->param_type = PDO_PARAM_STR; ZVAL_STRINGL(param->parameter, Z_BVAL_P(param->parameter) ? "t" : "f", 1, 1); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
