@@ -11,6 +11,12 @@ var tests = [
11
11
{ type : 'double' , insert : 5.5 } ,
12
12
{ type : 'bigint' , insert : '6' , expect : 6 } ,
13
13
{ type : 'bigint' , insert : 6 } ,
14
+ { type : 'bigint' , insert : '9007199254740991' , expect : 9007199254740991 } ,
15
+ { type : 'bigint' , insert : '9007199254740992' , expect : '9007199254740992' } ,
16
+ { type : 'bigint' , insert : '9223372036854775807' , expect : '9223372036854775807' } ,
17
+ { type : 'bigint' , insert : '-9007199254740991' , expect : - 9007199254740991 } ,
18
+ { type : 'bigint' , insert : '-9007199254740992' , expect : '-9007199254740992' } ,
19
+ { type : 'bigint' , insert : '-9223372036854775807' , expect : '-9223372036854775807' } ,
14
20
{ type : 'mediumint' , insert : 7 } ,
15
21
{ type : 'year' , insert : 2012 } ,
16
22
{ type : 'timestamp' , insert : new Date ( '2012-05-12 11:00:23' ) } ,
@@ -52,7 +58,7 @@ var tests = [
52
58
53
59
var table = 'type_casting' ;
54
60
55
- common . getTestConnection ( function ( err , connection ) {
61
+ common . getTestConnection ( { supportBigNumbers : true } , function ( err , connection ) {
56
62
assert . ifError ( err ) ;
57
63
58
64
common . useTestDb ( connection ) ;
0 commit comments