From 10e6c170c561e813cc274f65ad0ca535432ec039 Mon Sep 17 00:00:00 2001 From: Peter Bae Date: Tue, 12 Mar 2019 15:15:12 -0700 Subject: [PATCH] use random data --- .../microsoft/sqlserver/jdbc/bulkCopy/BulkCopyRowSetTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/bulkCopy/BulkCopyRowSetTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/bulkCopy/BulkCopyRowSetTest.java index 236924f9d..220db26e8 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/bulkCopy/BulkCopyRowSetTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/bulkCopy/BulkCopyRowSetTest.java @@ -16,6 +16,7 @@ import org.junit.jupiter.api.Test; import org.opentest4j.TestAbortedException; +import com.microsoft.sqlserver.jdbc.RandomData; import com.microsoft.sqlserver.jdbc.RandomUtil; import com.microsoft.sqlserver.jdbc.SQLServerBulkCopy; import com.microsoft.sqlserver.jdbc.SQLServerStatement; @@ -38,7 +39,7 @@ public void testBulkCopyFloatRowSet() throws SQLException { rsmd.setColumnType(1, java.sql.Types.FLOAT); crs.setMetaData(rsmd); - crs.setFloat(1, 123.45f); + crs.setFloat(1, RandomData.generateReal(true)); try (SQLServerBulkCopy bcOperation = new SQLServerBulkCopy(con)) { bcOperation.setDestinationTableName(tableName);