From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
Cc: | PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql eating backslashes |
Date: | 2000-07-17 18:30:38 |
Message-ID: | Pine.LNX.4.21.0007172026560.2925-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jan Wieck writes:
> seems to me that psql thinks to know a little too much about
> quoting. I'm not able to qoute a backslash at the end of a
> line:
>
> xxx=# select 'a\\b\\
> xxx'# c';
> ?column?
> ----------
> a\b
> c
> (1 row)
I committed a fix that should give you better results.
peter=# select 'abc\\
peter'# def';
?column?
----------
abc\
def
(1 row)
But what should
peter=# select 'abc\
peter'# def';
do? This doesn't seem right:
?column?
----------
abc
def
(1 row)
Should the newline be stripped?
--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden
From | Date | Subject | |
---|---|---|---|
Next Message | Larry Rosenman | 2000-07-17 18:37:14 | RE: Update: mac.c update, patch now on ftp |
Previous Message | Bruce Momjian | 2000-07-17 18:13:13 | Re: Update: mac.c update, patch now on ftp |