Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when dealing with string columns ?

2003-12-11 Thread Richard Huxton
On Thursday 11 December 2003 14:36, Nagib Abi Fadel wrote: > HI, > let's say we have the following table : > > # CREATE TABLE tempo (col1 varchar(3) not null); > CREATE TABLE > > # insert INTO tempo VALUES (''); > INSERT 11420541 1 I don't have much to add to Doug's reply, but you may want to look

Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when

2003-12-11 Thread Chris Travers
On Thu, 2003-12-11 at 22:36, Nagib Abi Fadel wrote: > HI, > let's say we have the following table : > > # CREATE TABLE tempo (col1 varchar(3) not null); > CREATE TABLE > > # insert INTO tempo VALUES (''); > INSERT 11420541 1 > > the insert command works. > > The issue is that since the col

Re: [HACKERS] [GENERAL] Should we consider empty fields as NULL values when

2003-12-11 Thread Doug McNaught
"Nagib Abi Fadel" <[EMAIL PROTECTED]> writes: >The issue is that since the column col1 is defined as character with >not null attribute, > >shouldn't we deny such inserts (i mean inserting empty fields)??? NULL and the empty string '' are *completely* different things. If you want to