pgsql: Handle carriage returns and line feeds in COPY CSV mode.
Log Message:
-----------
Handle carriage returns and line feeds in COPY CSV mode.
Andrew Dunstan
Modified Files:
--------------
pgsql/src/backend/commands:
copy.c (r1.236 -> r1.237)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/copy.c.diff?r1=1.236&r2=1.237)
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
-Neil
Neil Conway wrote:
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
Yep, Andrew?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Bruce Momjian said:
Neil Conway wrote:
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
Yep, Andrew?
Sure. I'll turn my test script into a regression test.
cheers]
andrew
Neil Conway wrote:
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
will this do?
cheers
andrew
Attachments:
csv-regress.patchtext/x-patch; name=csv-regress.patchDownload+60-0
Beautiful.
Your patch has been added to the PostgreSQL unapplied patches list at:
http://momjian.postgresql.org/cgi-bin/pgpatches
It will be applied as soon as one of the PostgreSQL committers reviews
and approves it.
---------------------------------------------------------------------------
Andrew Dunstan wrote:
Neil Conway wrote:
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
will this do?
cheers
andrew
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Patch applied. Thanks.
---------------------------------------------------------------------------
Andrew Dunstan wrote:
Neil Conway wrote:
Bruce Momjian wrote:
Handle carriage returns and line feeds in COPY CSV mode.
Would it be possible to have some regression tests for this?
will this do?
cheers
andrew
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073