Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
absci committed May 11, 2023
1 parent a9c3d98 commit 74d961a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/functional/sqlsrv/sqlsrv_github_1448.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ Repro script provided by thsmrtone1
die( "sqlsrv_connect failed." );
}

sqlsrv_query($conn, "CREATE TABLE test1448 (testCol nvarchar(50) NULL)");

$v0 = 1000;
$stmt = sqlsrv_prepare($conn, 'INSERT INTO [test] (testCol) VALUES (?);', [&$v0]);
$stmt = sqlsrv_prepare($conn, 'INSERT INTO [test1448] (testCol) VALUES (?);', [&$v0]);
sqlsrv_execute($stmt);

$v0 = 'abcd';
sqlsrv_execute($stmt);

$error = sqlsrv_errors(SQLSRV_ERR_ERRORS);
var_dump($error)
var_dump($error);

dropTable($conn, "test1448");
sqlsrv_close($conn);
?>
--EXPECT--
NULL

0 comments on commit 74d961a

Please sign in to comment.