You are probably using the smallint
data type for the port
attribute. The maximum value of this data type is 32767
.
In fact, I have replicated your problem:
CREATE TABLE a(a smallint);
Query OK, 0 rows affected (0.09 sec)
INSERT INTO a VALUES (37060);
Query OK, 1 row affected, 1 warning (0.02 sec)
SELECT * FROM a;
+-------+
| a |
+-------+
| 32767 |
+-------+
1 row in set (0.00 sec)
You would simply have to use a larger data type, such as mediumint
or int
.
Further reading: