'' <> NULL - Mailing list pgsql-general

From Cristian Custodio
Subject '' <> NULL
Date
Msg-id 002801c2f25f$64b4a350$fb01a8c0@ttcristian
Whole thread Raw
Responses Re: '' <> NULL  (Andrew Sullivan <andrew@libertyrms.info>)
Re: '' <> NULL  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-general
Hi,
 
I work with Oracle and to it,
a empty quote concatenation is equal NULL.
 
ORACLE:
select 1 from dual where '' is null
Result: 1
select 1 from dual where trim('  ') is null
result: 1
insert into tabela values ('')
result: insert a value null in a table
 
POSTGRE
select 1 where '' i snull
Result: NULL
select 1 where trim('  ') is null
result: NULL
insert into tabela values ('')
result: insere '' in table
 
We can't change all ours source code
bacause there are very occurrences.
 
Does anybody here in this forum, and that work
with Oracle already resolve this?
 
Are there any way to change the PG to equal
 '' like NULL?
 
Cristian

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: PL/Java (was: stored procedures)
Next
From: "Karen Grose"
Date:
Subject: Non Identifying Foreign Key Relationships