![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Pg 8.0.3 (Debian package) on AMD64, linux 2.6.12 I am importing a table using COPY. The data is tab-delimited. COPY seems to be putting the data for one field into the preceding field, which should contain the empty string. |
#3
| |||
| |||
|
|
Pg 8.0.3 (Debian package) on AMD64, linux 2.6.12 I am importing a table using COPY. The data is tab-delimited. COPY seems to be putting the data for one field into the preceding field, which should contain the empty string. |
#4
| |||
| |||
|
|
Oliver Elphick <olly (AT) bray-healthcare (DOT) com> writes: Pg 8.0.3 (Debian package) on AMD64, linux 2.6.12 I am importing a table using COPY. The data is tab-delimited. COPY seems to be putting the data for one field into the preceding field, which should contain the empty string. Can't reproduce that here, under either 8.0 or CVS tip. Are you sure you aren't making some silly mistake, like copying from the wrong file? |
#5
| |||
| |||
|
|
Pg 8.0.3 (Debian package) on AMD64, linux 2.6.12 I am importing a table using COPY. The data is tab-delimited. COPY seems to be putting the data for one field into the preceding field, which should contain the empty string. |
|
invdate | date | not null default ('now'::text)::date taxpoint | date | not null default ('now'::text)::date |
#6
| |||
| |||
|
|
I should add that the table inherits from another one, but the swapped columns are a long way into the extra columns specific to this table. |
#7
| |||
| |||
|
|
On Wed, Oct 12, 2005 at 07:08:20PM +0100, Oliver Elphick wrote: I should add that the table inherits from another one, but the swapped columns are a long way into the extra columns specific to this table. Could you post the table definitions? |
#8
| |||
| |||
|
|
On Wed, Oct 12, 2005 at 12:19:41PM -0600, Michael Fuhr wrote: On Wed, Oct 12, 2005 at 07:08:20PM +0100, Oliver Elphick wrote: I should add that the table inherits from another one, but the swapped columns are a long way into the extra columns specific to this table. Could you post the table definitions? BTW, I meant the CREATE TABLE statements, not the \d output. Here it is: |
ECIMAL(5,3) AND
ECIMAL(5,3)),
#9
| |||
| |||
|
|
On Wed, 2005-10-12 at 12:13 -0600, Michael Fuhr wrote: On another note, regarding the following: invdate | date | not null default ('now'::text)::date taxpoint | date | not null default ('now'::text)::date Are you sure you want 'now'::text as a default, considering the warning against it? I actually use CURRENT_DATE; that is what the system turns it into. |
#10
| |||
| |||
|
|
On Wed, Oct 12, 2005 at 12:19:41PM -0600, Michael Fuhr wrote: Could you post the table definitions? Here it is: |
![]() |
| Thread Tools | |
| Display Modes | |
| |