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
found syntax error when parsing DDL "CREATE TABLE `hello_json_utf8mb4` (`id` int NOT NULL AUTO_INCREMENT,`json_col` json NOT NULL DEFAULT (_utf8mb4'{}'), PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin": syntax error at position 121 near '{}'
Expected output
Run: 'ALTER TABLE user ADD COLUMN json_col json NOT NULL ~ ;'
The text was updated successfully, but these errors were encountered:
zztkm
changed the title
mysqldef: syntax error
mysqldef: json column default: syntax error near '{}'
Nov 24, 2023
Sorry, I don't understand what is "the revision policy".
This is probably a bug in the parser. The lexer (parser/token.go) and/or the parser (parser/parser.y) would need to be modified. If you can open a PR, that would be pretty much appreciated.
Platform
--export output
Input SQL
Current output
Expected output
Run: 'ALTER TABLE user ADD COLUMN json_col json NOT NULL ~ ;'
The text was updated successfully, but these errors were encountered: