Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Alter Table Window Does Not Escape Comment Fields

forums forums SQLyog SQLyog: Bugs / Feature Requests Alter Table Window Does Not Escape Comment Fields

  • This topic is empty.
Viewing 3 reply threads
  • Author
    Posts
    • #9438
      minboost
      Member

      I'm happy that it is finally easy to add comments to columns in Yog 5.01! But when you add a comment that has an invalid character the alter table fails.

      For example, if I put this as a comment:

      The Product's Disclaimer

      The alter table will fail because of the apostrophe. If I escape it manually in the comment field then it works fine.

      However, this seems a little counter-intuitive to have to do so. I'd imagine it'd be a super fast fix.

      EDIT: If I manually escape the comment, it works fine, until I try to alter the table again (I have to re-escape it) or even if I try to reorder the columns (Cntl+Alt+R). The SQL generated from both fails, and in the latter case I cannot manually escape the comment. I have to go back to alter table, remove the character(s), then reorder, then re-add the character(s).

      -M

    • #20233
      peterlaursen
      Participant

      I think it always was the idea that you should escape yourself. The comment string is not read character-by-character but as a whole.

      But then it should not be 'parsed away' or 'hidden' at a later point!

      Your are right – it is not functional the way it is now.

    • #20234
      Ritesh
      Member
    • #20235
      peterlaursen
      Participant
Viewing 3 reply threads
  • You must be logged in to reply to this topic.