{"action":"closed","issue":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/12702","repository_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin","labels_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/12702/labels{/name}","comments_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/12702/comments","events_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/12702/events","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/12702","id":189385456,"number":12702,"title":"DOUBLE - SQL syntax error","user":{"login":"tlghacc","id":7912891,"avatar_url":"https://avatars.githubusercontent.com/u/7912891?v=3","gravatar_id":"","url":"https://api.github.com/users/tlghacc","html_url":"https://github.com/tlghacc","followers_url":"https://api.github.com/users/tlghacc/followers","following_url":"https://api.github.com/users/tlghacc/following{/other_user}","gists_url":"https://api.github.com/users/tlghacc/gists{/gist_id}","starred_url":"https://api.github.com/users/tlghacc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlghacc/subscriptions","organizations_url":"https://api.github.com/users/tlghacc/orgs","repos_url":"https://api.github.com/users/tlghacc/repos","events_url":"https://api.github.com/users/tlghacc/events{/privacy}","received_events_url":"https://api.github.com/users/tlghacc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T12:59:36Z","updated_at":"2016-11-15T13:02:56Z","closed_at":"2016-11-15T13:02:56Z","body":"### Steps to reproduce\r\n1. Login in to the PMA version 4.6.4\r\n2. Go to your database, select any table -> Structure -> Add 1 column (at the end of table)\r\n3. Set any column Name, Type -> DOUBLE, set Values (anything you like) for ex. 8,4 all other values you can keep empty / default\r\n4. Run Preview SQL and you can see SQL statement like this:\r\n\r\n> ALTER TABLE `test` ADD `xxx2` DOUBLE(8) NOT NULL AFTER `xxx`;\r\n\r\nwhere you can see is missing DOUBLE second value. After you run it (Save button) you get SQL syntax error like this:\r\n\r\nSQL query:\r\n\r\nALTER TABLE `test`  ADD `xxx2` DOUBLE(6) NOT NULL  AFTER `xxx`;\r\n\r\nMySQL said: Documentation\r\n#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 ') NOT NULL  AFTER `xxx`' at line 1\r\n\r\n### Expected behaviour\r\nInsert new column with DOUBLE type with specified values.\r\nSQL should looks like:\r\n\r\n`ALTER TABLE test ADD xxx2 DOUBLE(8,4) NOT NULL AFTER xxx;`\r\n\r\n### Actual behaviour\r\nSQL Syntax error\r\n\r\n### Server configuration\r\n**Operating system**: Debian Linux\r\n\r\n**Web server:** Apache 2.4\r\n\r\n**Database:** MySQL 5.5.53\r\n\r\n**PHP version:** 5.6\r\n\r\n**phpMyAdmin version:** 4.6.4\r\n\r\n### Client configuration\r\n**Browser:** Firefox / Chrome\r\n\r\n**Operating system:** Ubuntu Linux / Windows 10\r\n"}}
{"actor":{"display_login":"tlghacc"}}