@@ -21,7 +21,13 @@ if (!$link->query("CREATE TABLE `bug_bits` (`inty` bigint(20) unsigned NOT NULL
21
21
printf ("[003] [%d] %s \n" , $ link ->errno , $ link ->error );
22
22
}
23
23
24
- $ insertQuery = "INSERT INTO `bug_bits` VALUES (18446744073709551615, 18446744073709551615), (18446744073709551614, 18446744073709551614) " ;
24
+ $ insertQuery = "INSERT INTO `bug_bits` VALUES (18446744073709551615, 18446744073709551615) " .
25
+ ",(18446744073709551614, 18446744073709551614) " .
26
+ ",(4294967296, 4294967296) " .
27
+ ",(4294967295, 4294967295) " .
28
+ ",(2147483648, 2147483648) " .
29
+ ",(2147483647, 2147483647) " .
30
+ ",(1, 1) " ;
25
31
if (!$ link ->query ($ insertQuery )) {
26
32
printf ("[004] [%d] %s \n" , $ link ->errno , $ link ->error );
27
33
}
@@ -44,7 +50,7 @@ require_once("connect.inc");
44
50
if (!$ link = my_mysqli_connect ($ host , $ user , $ passwd , $ db , $ port , $ socket ))
45
51
printf ("[c001] [%d] %s \n" , mysqli_connect_errno (), mysqli_connect_error ());
46
52
47
- if (!mysqli_query ($ link , "DROP TABLE IF EXISTS bug72489 " ))
53
+ if (!mysqli_query ($ link , "DROP TABLE IF EXISTS bug_bits " ))
48
54
printf ("[c002] Cannot drop table, [%d] %s \n" , mysqli_errno ($ link ), mysqli_error ($ link ));
49
55
50
56
mysqli_close ($ link );
@@ -62,4 +68,34 @@ array(2) {
62
68
["bitty"]=>
63
69
string(20) "18446744073709551614"
64
70
}
71
+ array(2) {
72
+ ["inty"]=>
73
+ string(10) "4294967296"
74
+ ["bitty"]=>
75
+ string(10) "4294967296"
76
+ }
77
+ array(2) {
78
+ ["inty"]=>
79
+ string(10) "4294967295"
80
+ ["bitty"]=>
81
+ string(10) "4294967295"
82
+ }
83
+ array(2) {
84
+ ["inty"]=>
85
+ string(10) "2147483648"
86
+ ["bitty"]=>
87
+ string(10) "2147483648"
88
+ }
89
+ array(2) {
90
+ ["inty"]=>
91
+ string(10) "2147483647"
92
+ ["bitty"]=>
93
+ string(10) "2147483647"
94
+ }
95
+ array(2) {
96
+ ["inty"]=>
97
+ string(1) "1"
98
+ ["bitty"]=>
99
+ string(1) "1"
100
+ }
65
101
Done
0 commit comments