From 0b3f113517f36177b41bb1ca4d3462721c50af78 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 19 Dec 2019 09:02:11 -0800 Subject: [PATCH] Fixed sqlsrv test --- test/functional/sqlsrv/srv_1063_test_locale.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/test/functional/sqlsrv/srv_1063_test_locale.php b/test/functional/sqlsrv/srv_1063_test_locale.php index 975016b44..07e00743e 100644 --- a/test/functional/sqlsrv/srv_1063_test_locale.php +++ b/test/functional/sqlsrv/srv_1063_test_locale.php @@ -1,7 +1,7 @@ $uid, 'PWD'=>$pwd, 'Database'=>$database)); +$conn = connect(); $tableName = "[" . "srv1063" . $locale . "]"; -// dropTable($conn, $tableName); +dropTable($conn, $tableName); $pi = "3.14159"; -sqlsrv_query($conn, "DROP TABLE $tableName"); - $stmt = sqlsrv_query($conn, "CREATE TABLE $tableName (c1 FLOAT)"); if (!$stmt) { fatalError("Failed to create test table $tableName"); @@ -60,8 +52,7 @@ sqlsrv_free_stmt($stmt); -// dropTable($conn, $tableName); -sqlsrv_query($conn, "DROP TABLE $tableName"); +dropTable($conn, $tableName); sqlsrv_close($conn);