@@ -1438,7 +1438,7 @@ public void testFailedToResumeTransaction() throws Exception {
1438
1438
public void testSmallBigDecimalValuesForLossOfPrecision () throws SQLException {
1439
1439
try (SQLServerConnection con = getConnection ();
1440
1440
Statement stmt = con .createStatement (ResultSet .TYPE_FORWARD_ONLY , ResultSet .CONCUR_UPDATABLE )) {
1441
- con .setCalcBigDecimalScale (true );
1441
+ con .setCalcBigDecimalPrecision (true );
1442
1442
double bigDecimalLessThanOne = 0.1235 ;
1443
1443
double bigDecimalGreaterThanOne = 1.1235 ;
1444
1444
String query = "CREATE PROCEDURE " + procName
@@ -1471,7 +1471,7 @@ public void testSmallBigDecimalValuesForLossOfPrecision() throws SQLException {
1471
1471
@ Test
1472
1472
public void testLongBigDecimalValuesForLossOfPrecision () throws SQLException {
1473
1473
try (SQLServerConnection con = getConnection (); Statement stmt = con .createStatement ()) {
1474
- con .setCalcBigDecimalScale (true );
1474
+ con .setCalcBigDecimalPrecision (true );
1475
1475
stmt .executeUpdate ("CREATE TABLE " + tableName + " (col1 decimal(38,38), col2 decimal(38,37))" );
1476
1476
1477
1477
// col1 has maximum scale (38) with a leading zero, for a precision of 38. col2 has maximum scale (37) when
@@ -1499,7 +1499,7 @@ public void testLongBigDecimalValuesForLossOfPrecision() throws SQLException {
1499
1499
@ Test
1500
1500
public void testMathBigDecimalSubtraction () throws SQLException {
1501
1501
try (SQLServerConnection con = getConnection (); Statement stmt = con .createStatement ()) {
1502
- con .setCalcBigDecimalScale (true );
1502
+ con .setCalcBigDecimalPrecision (true );
1503
1503
stmt .executeUpdate ("CREATE TABLE " + tableName + " (test_column decimal(10,5))" );
1504
1504
stmt .executeUpdate ("INSERT INTO " + tableName + " VALUES(99999.12345)" );
1505
1505
try (PreparedStatement pstmt = con .prepareStatement ("SELECT (test_column - ?), "
@@ -1539,7 +1539,7 @@ public void testMathBigDecimalSubtraction() throws SQLException {
1539
1539
@ Test
1540
1540
public void testMathBigDecimalAddition () throws SQLException {
1541
1541
try (SQLServerConnection con = getConnection (); Statement stmt = con .createStatement ()) {
1542
- con .setCalcBigDecimalScale (true );
1542
+ con .setCalcBigDecimalPrecision (true );
1543
1543
stmt .executeUpdate ("CREATE TABLE " + tableName + " (test_column decimal(10,5))" );
1544
1544
stmt .executeUpdate ("INSERT INTO " + tableName + " VALUES(99999.12345)" );
1545
1545
try (PreparedStatement pstmt = con .prepareStatement ("SELECT (test_column + ?), "
@@ -1579,7 +1579,7 @@ public void testMathBigDecimalAddition() throws SQLException {
1579
1579
@ Test
1580
1580
public void testMathBigDecimalMultiplication () throws SQLException {
1581
1581
try (SQLServerConnection con = getConnection (); Statement stmt = con .createStatement ()) {
1582
- con .setCalcBigDecimalScale (true );
1582
+ con .setCalcBigDecimalPrecision (true );
1583
1583
stmt .executeUpdate ("CREATE TABLE " + tableName + " (test_column decimal(10,5))" );
1584
1584
stmt .executeUpdate ("INSERT INTO " + tableName + " VALUES(99999.12345)" );
1585
1585
try (PreparedStatement pstmt = con .prepareStatement ("SELECT (test_column * ?), "
@@ -1619,7 +1619,7 @@ public void testMathBigDecimalMultiplication() throws SQLException {
1619
1619
@ Test
1620
1620
public void testMathBigDecimalDivision () throws SQLException {
1621
1621
try (SQLServerConnection con = getConnection (); Statement stmt = con .createStatement ()) {
1622
- con .setCalcBigDecimalScale (true );
1622
+ con .setCalcBigDecimalPrecision (true );
1623
1623
stmt .executeUpdate ("CREATE TABLE " + tableName + " (test_column decimal(10,5))" );
1624
1624
stmt .executeUpdate ("INSERT INTO " + tableName + " VALUES(99999.12345)" );
1625
1625
try (PreparedStatement pstmt = con .prepareStatement ("select (test_column / ?), "
0 commit comments