You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to your database, select any table -> Structure -> Add 1 column (at the end of table)
Set any column Name, Type -> ENUM, set Values (anything you like) for ex. '0','1' all other values you can keep empty / default
Run Preview SQL and you can see SQL statement like this:
ALTER TABLE testADDxxxENUM(0) NOT NULL AFTERtest;
where you can see is missing ENUM values. After you run it (Save button) you get SQL syntax error like this:
SQL query:
ALTER TABLE test ADD xxx ENUM(0) NOT NULL AFTER test;
MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0) NOT NULL AFTER test' at line 1
Expected behaviour
Insert new column with ENUM type with specified values.
SQL should looks like: ALTER TABLE test ADDxxxENUM('0','1') NOT NULL AFTERtest;
Actual behaviour
SQL Syntax error
Server configuration
Operating system: Debian Linux
Web server: Apache 2.4
Database: MySQL 5.5.53
PHP version: 5.6
phpMyAdmin version: 4.6.4
Client configuration
Browser: Firefox / Chrommium
Operating system: Ubuntu Linux / Windows 10
The text was updated successfully, but these errors were encountered:
Hi @tlghacc thanks for the report but it seems this has already been reported and fixed at #12480. The fix would be a part of the next bug-fix release 4.6.5
Steps to reproduce
ALTER TABLE
testADD
xxxENUM(0) NOT NULL AFTER
test;
where you can see is missing ENUM values. After you run it (Save button) you get SQL syntax error like this:
SQL query:
ALTER TABLE
test
ADDxxx
ENUM(0) NOT NULL AFTERtest
;MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0) NOT NULL AFTER
test
' at line 1Expected behaviour
Insert new column with ENUM type with specified values.
SQL should looks like:
ALTER TABLE
testADD
xxxENUM('0','1') NOT NULL AFTER
test;
Actual behaviour
SQL Syntax error
Server configuration
Operating system: Debian Linux
Web server: Apache 2.4
Database: MySQL 5.5.53
PHP version: 5.6
phpMyAdmin version: 4.6.4
Client configuration
Browser: Firefox / Chrommium
Operating system: Ubuntu Linux / Windows 10
The text was updated successfully, but these errors were encountered: