From 40893c0ebf9c84c355f5621d9340c2c8ea03d6c9 Mon Sep 17 00:00:00 2001 From: Hadis Kakanejadi Fard Date: Wed, 22 Feb 2017 09:21:44 -0800 Subject: [PATCH] fixed indentation and typo --- test/pdo_sqlsrv/pdo_270_fetch_binary.phpt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/pdo_sqlsrv/pdo_270_fetch_binary.phpt b/test/pdo_sqlsrv/pdo_270_fetch_binary.phpt index 19079504..de7fc984 100644 --- a/test/pdo_sqlsrv/pdo_270_fetch_binary.phpt +++ b/test/pdo_sqlsrv/pdo_270_fetch_binary.phpt @@ -23,7 +23,6 @@ $conn->exec($sql); $icon = base64_decode("This is some text to test retrieving from binary type columns"); - // Insert data using bind parameters $sql = "INSERT INTO $tableName($columns[0], $columns[1], $columns[2], $columns[3]) VALUES ( ?, ?, ?, ?)"; $stmt = $conn->prepare($sql); @@ -48,7 +47,7 @@ print_r("Test finished successfully"); //calls various fetch methods function test_fetch($conn, $tableName, $columnName, $input){ - $len = strlen($input); + $len = strlen($input); $result = ""; $sql = "SELECT $columnName from $tableName"; @@ -84,12 +83,12 @@ function test_fetch($conn, $tableName, $columnName, $input){ $result = ""; $stmt = $conn->query($sql); - $result = $stmt->fetchALL( PDO::FETCH_COLUMN ); + $result = $stmt->fetchAll( PDO::FETCH_COLUMN ); if( strncmp($result[0], $input, $len) !== 0){ - print_r("\nRetrieving using fetchALL failed"); + print_r("\nRetrieving using fetchAll failed"); } } ?> --EXPECT-- -Test finished successfully \ No newline at end of file +Test finished successfully