Hi Marc,
I now receive the error message but too late as I'm no longer in my
table altering dialog. Many kinds of errors could happen here, not just the one I pointed. As another example, changing the type from INT to VARCHAR and omitting the length.
To compare, try another dialog: in the Create table, try to create some table with the same name as an existing table. In this case, the dialog receives the error message and I'm able to correct my mistake.
I replaced the logic of error shown to show the (".error code") in a ajax message which allows user to find what is the error and resubmit the form. Is it okay or should I use another error message to show. Please check that. Thank you.
Regards, Thilanka.