@@ -58,6 +58,31 @@ def test_decimal_long_values(self):
58
58
event = self .create_and_insert_value (create_query , insert_query )
59
59
self .assertEqual (event .rows [0 ]["values" ]["test" ], Decimal ("42000.123456" ))
60
60
61
+ def test_decimal_long_values_1 (self ):
62
+ create_query = "CREATE TABLE test (\
63
+ test DECIMAL(20,10) \
64
+ )"
65
+ insert_query = "INSERT INTO test VALUES(9000000001.123456)"
66
+ event = self .create_and_insert_value (create_query , insert_query )
67
+ self .assertEqual (event .rows [0 ]["values" ]["test" ], Decimal ("9000000001.123456" ))
68
+
69
+ def test_decimal_long_values_1 (self ):
70
+ create_query = "CREATE TABLE test (\
71
+ test DECIMAL(20,10) \
72
+ )"
73
+ insert_query = "INSERT INTO test VALUES(9000000123.123456)"
74
+ event = self .create_and_insert_value (create_query , insert_query )
75
+ self .assertEqual (event .rows [0 ]["values" ]["test" ], Decimal ("9000000123.123456" ))
76
+
77
+ def test_decimal_long_values_2 (self ):
78
+ create_query = "CREATE TABLE test (\
79
+ test DECIMAL(20,10) \
80
+ )"
81
+ insert_query = "INSERT INTO test VALUES(9000000123.0000012345)"
82
+ event = self .create_and_insert_value (create_query , insert_query )
83
+ self .assertEqual (event .rows [0 ]["values" ]["test" ],
84
+ Decimal ("9000000123.0000012345" ))
85
+
61
86
def test_decimal_negative_values (self ):
62
87
create_query = "CREATE TABLE test (\
63
88
test DECIMAL(20,10) \
0 commit comments