Skip to content

Commit

Permalink
use random data
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbae committed Mar 12, 2019
1 parent ac1d0da commit 10e6c17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 10e6c17

Please sign in to comment.