Re: CR/LF conversion (was: [SQL] import error)

2003-02-02 Thread Bruce Momjian
We are supporting Win32 in 7.4, so it is very likely COPY will support carriage returns the next release. --- Tom Lane wrote: > Oliver Vecernik <[EMAIL PROTECTED]> writes: > > It's always the same problem with CR/LF conversi

Re: CR/LF conversion (was: [SQL] import error)

2003-01-28 Thread Tom Lane
Oliver Vecernik <[EMAIL PROTECTED]> writes: > It's always the same problem with CR/LF conversions ... Ah, you figured it out. (Didn't see your followup right away because of the changed subject line.) > After changing it to just LFs, everthing worked like a charm. Is there > an elegant way to h

Re: [SQL] import error

2003-01-28 Thread Tom Lane
Oliver Vecernik <[EMAIL PROTECTED]> writes: > My import gives following error: > sport=# copy dives from '/var/n/tmp/ov.CSV' delimiters ','; > ": can't parse "ne 1, pg_atoi: error in "0 The weird formatting of the error message suggests that the problem is DOS-style newlines (CR/LF). COPY only l

Re: CR/LF conversion (was: [SQL] import error)

2003-01-28 Thread Achilleus Mantzios
On Tue, 28 Jan 2003, Oliver Vecernik wrote: > Oliver Vecernik schrieb: > > > Hi all! > > > > I'm trying to import a text file from Suunto Dive Manager. I've got > > following table structure: > > Arghh ... > > It's always the same problem with CR/LF conversions ... > > After changing it to just LF

Re: CR/LF conversion (was: [SQL] import error)

2003-01-28 Thread Oliver Vecernik
Oliver Vecernik schrieb: Hi all! I'm trying to import a text file from Suunto Dive Manager. I've got following table structure: Arghh ... It's always the same problem with CR/LF conversions ... After changing it to just LFs, everthing worked like a charm. Is there an elegant way to handle

Re: [SQL] import error

2003-01-28 Thread Achilleus Mantzios
On Tue, 28 Jan 2003, Achilleus Mantzios wrote: > On Tue, 28 Jan 2003, Oliver Vecernik wrote: > > > > > 1,1,"07.08.2001","11:35",1,1,2220,0,6.0,0.0,12,0,"",20,0,0,0,1,"Sarigerme","Asche > > Bucht","wolkenlos",">20m",35,0,30,"","Mehmet > > Semerkant","","",0.0,1,0.,0.,0,0.,0,"","",""

Re: [SQL] import error

2003-01-28 Thread Achilleus Mantzios
On Tue, 28 Jan 2003, Oliver Vecernik wrote: > > 1,1,"07.08.2001","11:35",1,1,2220,0,6.0,0.0,12,0,"",20,0,0,0,1,"Sarigerme","Asche > Bucht","wolkenlos",">20m",35,0,30,"","Mehmet > Semerkant","","",0.0,1,0.,0.,0,0.,0,"","","","","",12,0,0,0 Why dont you get rid of "'s ? e.g. 1,1

[SQL] import error

2003-01-28 Thread Oliver Vecernik
Hi all! I'm trying to import a text file from Suunto Dive Manager. I've got following table structure: CREATE TABLE dives ( id int, dive_number int, dive_date date, time_of_day time, series int, dc_dive_number int, dive_time int, surface_interval int, max_depth float, mean_depth float, dc_type i