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

' Not Managed In Fields Comments (4.2rc1)

forums forums SQLyog SQLyog: Bugs / Feature Requests ' Not Managed In Fields Comments (4.2rc1)

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #9315
      shoyu
      Member

      Hello,

      This is a bug with V4.2RC1:

      Problem:

      It seems that special SQL characters like ' are not managed in the comment column of the “alter table…”.

      If you type Nombre d'années (french) you have an error when you validate.

      Solution for the moment: You have to type Nombre d''années.

      Cheers.

      Shoyu

    • #19588
      peterlaursen
      Participant

      @shoyu

      Or you could write Nombre d'années – as you would do in handwritten SQL according to the general rules of using escape characters within strings. But yes I think that I remember that you can escape ' with one more ' too. 🙂

      But we agree SQLyog should handle escaping automatically here as anywhere else …

      The point/explanation is that SQLyog encloses all string with the ' character when building SQL, so

      Code:
      Nombre d'années

      becomes

      Code:
      'Nombre d'années'

      becomes in the ALTER TABLE staement after being 'processed by SQLyog. Thus the string is only

      Code:
      Nombre d

      and

      Code:
      années'

      is garbage! And MySQL raises an error.

    • #19589
      Ritesh
      Member
      shoyu wrote on Oct 26 2005, 10:16 AM:
      Hello,

      This is a bug with V4.2RC1:

      Problem:

      It seems that special SQL characters like ' are not managed in the comment column of the “alter table…”.

      If you type Nombre d'années (french) you have an error when you validate.

      Solution for the moment: You have to type Nombre d''années.

      Cheers.

      Shoyu

      [post=”7705″]<{POST_SNAPBACK}>[/post]

      This is correct. You will need to escape ' with a .

Viewing 2 reply threads
  • You must be logged in to reply to this topic.