Not Seeing Syntax Error - Mailing list pgsql-general

From Rich Shepard
Subject Not Seeing Syntax Error
Date
Msg-id alpine.LNX.2.00.1108170842260.1129@salmo.appl-ecosys.com
Whole thread Raw
Responses Re: Not Seeing Syntax Error
List pgsql-general
   For several INSERT INTO rows I get a syntax error when the quant column is
NULL for one specific parameter. I don't see my error. Here is an example
row:

psql:insert.sql:8: ERROR:  syntax error at or near ","
LINE 1: ...ALUES ('9609-0759','BC-1.5','1996-09-19','Arsenic',,'mg/L');
                                                               ^
   The source line is:

INSERT INTO chemistry (lab_nbr, loc_name, sample_date, param, quant,
units)VALUES ('9609-0759','BC-1.5','1996-09-19','Arsenic',,'mg/L');

and the quant column is defined as type real. There are numerous other rows
where quant IS NULL.

   What have I missed?

Rich


pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: Using Postgresql as application server
Next
From: Thom Brown
Date:
Subject: Re: Not Seeing Syntax Error