Why does TINYINT(1)
work as a boolean? The way I understood the official docs, the (1) should mean it has a display width of 1, so if I store 56
in
This is a mysql Jdbc configuration subject.
You can config mysql jdbc to convert TinyInt(1) to Boolean or Integer through set jdbc url config property "tinyInt1isBit" to "true" (default) or "false".
from: https://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html
Should the driver treat the datatype TINYINT(1) as the BIT type (because the server silently converts BIT -> TINYINT(1) when creating tables)?
Default: true