Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
why comma in field length for int big int #869
Steps to reproduce this issue
after table is created when you see table details in editor it displays comma separator in field length for int and bigint which is giving error.
enum default value should appear with single quote
should be as expected output
wnidows 10 pro 64 bit
@ansgarbecker I could not reproduce at r5919 (11.0). I will check when it was fixed. BTW, where I can search the full archive of versions? I can't download 5850 via site.
Edit: I have checked 5870 (minimum that I have access) and it seems works fine. I suggests @mailparikshit to update to the last available version.
CREATE TABLE `test_869` ( `double` DOUBLE(10,3) NULL DEFAULT NULL, `int` INT(10) NULL DEFAULT NULL, `enum` ENUM('Y','N') NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci' ) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
Ok, I could reproduce with MySQL 8.0.19 at least, using r5919. But
In this case, it will generate the following code:
ALTER TABLE `test_869` CHANGE COLUMN `int` `int2` INT(10,0) NULL DEFAULT NULL AFTER `double`;
ALTER TABLE `test_869` CHANGE COLUMN `enum` `enum` ENUM('Y','N') NULL DEFAULT 'N' COLLATE 'utf8mb4_general_ci' AFTER `int`;