Forums | Webyog
Tools to manage and monitor MySQL databases
forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Alter View Invalid Syntax Generated
In some cases, the SQL generated by Alter View is incorrect.
The generated SQL is
ALTER ALGORITHM=TEMPTABLE DEFINER=user@% SQL SECURITY DEFINER VIEW `vwOrderdetail` AS (…
but should be
ALTER ALGORITHM=TEMPTABLE DEFINER=user@`%` SQL SECURITY DEFINER VIEW `vwOrderdetail` AS (…
It is missing the quotes around the %
This could be a server issue (ie. server returning the user@host -strng unquoted).
What is the server version? Can you provide a simple example where it happes and one where it does not?