Re: Not Seeing Syntax Error - Mailing list pgsql-general

From David Johnston
Subject Re: Not Seeing Syntax Error
Date
Msg-id 008301cc5cfb$2b521c90$81f655b0$@yahoo.com
Whole thread Raw
In response to Re: Not Seeing Syntax Error  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Not Seeing Syntax Error
List pgsql-general
-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Rich Shepard
Sent: Wednesday, August 17, 2011 12:27 PM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Not Seeing Syntax Error

On Wed, 17 Aug 2011, Thom Brown wrote:

> The error message points to the problem.  No value, not even NULL, has
> been specified for 5th column.  Either put DEFAULT or NULL in there.
> You can't put nothing.

   I was under the impression (obviously wrong) that a blank field was
accepted as a NULL.

Thanks,

Rich

----------------------------------------------

To be honest I was too and maybe I somehow implied that to you.  Anyway, I
believe if you are dealing with CSV import then you are correct but
apparently SQL is not as forgiving.  I use a third-party application to
import my CSV usually so whether that observation applies to PSQL or other
mechanisms (like pg_loader) I cannot say.

David J.



pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: Using Postgresql as application server
Next
From: John R Pierce
Date:
Subject: Re: Using Postgresql as application server