-
Notifications
You must be signed in to change notification settings - Fork 2.3k
RFC: Parse TINYINT(1)
as bool
#1453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CREATE TABLE tbl (x TINYINT(1));
INSERT INTO tbl VALUES (-128),(127);
SELECT * FROM tbl;
|
OK. Assuming TINYINT(1) is bool is not 100% safe. |
Using TINYINT(1) for Boolean is MySQL's spec.
|
I would be very supportive of having an option like |
MySQL doesn't have actual bool type. Boolean is alias of
TINYINT(1)
.Using
TINYINT(1)
for regular integer is not so common.How about treating
TINYINT(1)
as bool for better experience?The text was updated successfully, but these errors were encountered: