Re: [pgadmin-support] SQL syntax highlightning don't work forsingle backslash '\'

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: [pgadmin-support] SQL syntax highlightning don't work forsingle backslash '\'
Дата
Msg-id 980375793.4335317.1495483369454@mail.yahoo.com
обсуждение исходный текст
Ответ на Re: [pgadmin-support] SQL syntax highlightning don't work for singlebackslash '\'  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: [pgadmin-support] SQL syntax highlightning don't work for singlebackslash '\'  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgadmin-support
>Unless you omit the E prefix on the string literal, which the OP did.

Nope! That results in 'a//b' but the op wants 'a/b';
Hence the need to Escape.

Melvin Davidson 🎸
    Cell 720-320-0155
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.
www.youtube.com/unusedhero/videos
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com




From: David G. Johnston <david.g.johnston@gmail.com>
To: Melvin Davidson <melvin6925@yahoo.com>
Cc: "mammoth.power@gmx.us" <mammoth.power@gmx.us>; "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>
Sent: Monday, May 22, 2017 3:54 PM
Subject: Re: [pgadmin-support] SQL syntax highlightning don't work for single backslash '\'

On Monday, May 22, 2017, Melvin Davidson <melvin6925@yahoo.com> wrote:

>When I have somewhere in text value single backslash char, then everything behind this char will not be highlighted correct.

That is because the Backslash is an ESCAPE character, so you must ESCAPE it and use two backslashes if you want it to be interpreted
as a literal.

Unless you omit the E prefix on the string literal, which the OP did.

David J.


В списке pgadmin-support по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [pgadmin-support] SQL syntax highlightning don't work for singlebackslash '\'
Следующее
От: Dave Page
Дата:
Сообщение: Re: [pgadmin-support] Popup message always that PgAdmin 3 starts