pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedbigger problem
3+ messages / 3 participants
[nested] [flat]
* bigger problem
@ 2002-11-11 14:57 Carlos Sousa <carlosdsousa@hotmail.com>
2002-11-11 18:13 ` Re: bigger problem Josh Berkus <josh@agliodbs.com>
2002-11-11 20:12 ` Re: bigger problem Peter Eisentraut <peter_e@gmx.net>
0 siblings, 2 replies; 3+ messages in thread
From: Carlos Sousa @ 2002-11-11 14:57 UTC (permalink / raw)
To: pgsql-sql
in postgres database i created a table with a field like
create table (...)
(...)
var text default '' not null
(...)
now i need to import the data from this table into a oracle database
i used pg_dump
I altered the field data type to
(...)
var varchar2(50) default '' not null
(...)
but when i was importing the the table into the oracle database all the rows
with the field var='' were not inserted.
Is there a way to work this around
thanks for your time and replay
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bigger problem
2002-11-11 14:57 bigger problem Carlos Sousa <carlosdsousa@hotmail.com>
@ 2002-11-11 18:13 ` Josh Berkus <josh@agliodbs.com>
1 sibling, 0 replies; 3+ messages in thread
From: Josh Berkus @ 2002-11-11 18:13 UTC (permalink / raw)
To: Carlos Sousa <carlosdsousa@hotmail.com>; pgsql-sql
Carlos,
> in postgres database i created a table with a field like
>
> create table (...)
> (...)
> var text default '' not null
> (...)
>
> now i need to import the data from this table into a oracle database
> i used pg_dump
>
> I altered the field data type to
>
> (...)
> var varchar2(50) default '' not null
> (...)
>
> but when i was importing the the table into the oracle database all
> the rows with the field var='' were not inserted.
> Is there a way to work this around
This is a problem with your configuration of Oracle import. See your
Oracle documentation; we cannot help you here.
-Josh Berkus
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bigger problem
2002-11-11 14:57 bigger problem Carlos Sousa <carlosdsousa@hotmail.com>
@ 2002-11-11 20:12 ` Peter Eisentraut <peter_e@gmx.net>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2002-11-11 20:12 UTC (permalink / raw)
To: Carlos Sousa <carlosdsousa@hotmail.com>; +Cc: pgsql-sql
Carlos Sousa writes:
> (...)
> var varchar2(50) default '' not null
> (...)
>
> but when i was importing the the table into the oracle database all the rows
> with the field var='' were not inserted.
> Is there a way to work this around
Yes, don't use Oracle.
In Oracle, '' is the same as null, so the constraint is not satisfied.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-11-11 20:12 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-11 14:57 bigger problem Carlos Sousa <carlosdsousa@hotmail.com>
2002-11-11 18:13 ` Josh Berkus <josh@agliodbs.com>
2002-11-11 20:12 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox