From bbf951cad858ceb576a2cf0558a68e0efd16eea4 Mon Sep 17 00:00:00 2001 From: David Puglielli Date: Wed, 11 Apr 2018 13:37:31 -0700 Subject: [PATCH] Minor fixes --- .../functional/pdo_sqlsrv/pdo_ae_output_param_binary_size.phpt | 3 +-- test/functional/pdo_sqlsrv/pdo_bigint_outparam.phpt | 2 +- test/functional/sqlsrv/sqlsrv_bigint_outparam.phpt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/functional/pdo_sqlsrv/pdo_ae_output_param_binary_size.phpt b/test/functional/pdo_sqlsrv/pdo_ae_output_param_binary_size.phpt index 21688022..6feb6a50 100644 --- a/test/functional/pdo_sqlsrv/pdo_ae_output_param_binary_size.phpt +++ b/test/functional/pdo_sqlsrv/pdo_ae_output_param_binary_size.phpt @@ -88,7 +88,6 @@ function testOutputBinary($inout) $stmt = $conn->prepare($outSql); trace("\nParam $pdoParamType with INOUT = $inout\n"); - // if ($inout && $pdoParamType != PDO::PARAM_STR) { if ($inout && $pdoParamType == PDO::PARAM_STR) { // Currently do not support getting binary as strings + INOUT param // See VSO 2829 for details @@ -211,4 +210,4 @@ echo "Done\n"; unset($conn); ?> --EXPECT-- -Done \ No newline at end of file +Done diff --git a/test/functional/pdo_sqlsrv/pdo_bigint_outparam.phpt b/test/functional/pdo_sqlsrv/pdo_bigint_outparam.phpt index bb93edab..2de34584 100644 --- a/test/functional/pdo_sqlsrv/pdo_bigint_outparam.phpt +++ b/test/functional/pdo_sqlsrv/pdo_bigint_outparam.phpt @@ -26,7 +26,7 @@ insertRow($conn, $tbname, array("c1_bigint" => 922337203685479936)); $outSql = "{CALL $spname (?)}"; $bigintOut = 0; $stmt = $conn->prepare($outSql); -$stmt->bindParam(1, $bigintOut, PDO::PARAM_STR, 2048); +$stmt->bindParam(1, $bigintOut, PDO::PARAM_STR, 32); $stmt->execute(); printf("Large bigint output:\n" ); var_dump($bigintOut); diff --git a/test/functional/sqlsrv/sqlsrv_bigint_outparam.phpt b/test/functional/sqlsrv/sqlsrv_bigint_outparam.phpt index 437ec5c6..83239cd7 100644 --- a/test/functional/sqlsrv/sqlsrv_bigint_outparam.phpt +++ b/test/functional/sqlsrv/sqlsrv_bigint_outparam.phpt @@ -33,7 +33,7 @@ printf("\n"); // Call stored procedure with SQLSRV_PARAM_INOUT $bigintOut = 0; -$stmt = sqlsrv_prepare($conn, $outSql, array(array(&$bigintOut, SQLSRV_PARAM_INOUT, null, SQLSRV_SQLTYPE_VARCHAR(20)))); +$stmt = sqlsrv_prepare($conn, $outSql, array(array(&$bigintOut, SQLSRV_PARAM_INOUT, null, SQLSRV_SQLTYPE_VARCHAR(32)))); sqlsrv_execute($stmt); printf("Large bigint inout:\n"); var_dump($bigintOut);