| From: | Keary Suska <hierophant(at)pcisys(dot)net> |
|---|---|
| To: | Postgres-PHP <pgsql-php(at)postgresql(dot)org> |
| Subject: | Re: Inserting Null Value or String Value |
| Date: | 2002-10-01 22:48:09 |
| Message-ID: | B9BF8249.13CDD%hierophant@pcisys.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-php |
on 10/1/02 1:20 PM, dcmkx10(at)yahoo(dot)com purportedly said:
> This is the SQL generated: UPDATE prod_opt SET xref_prod_id = '4', code = '2',
> title = 'test', isbn = '2', list_price = 2, our_price = 2, spec_price = 2,
> spec_start_date = '10/01/02', spec_end_date = '10/01/02', quantity = 2,
> clearance = 't', priority = 2 WHERE id = '2'
>
> This is the error I get: Warning: PostgreSQL query failed: ERROR: parser:
> parse error at or near "10"
I wouldn't expect that error message, but unless you have changed your date
preferences the date format being used is invalid. By default, you must use
SQl formatted dates, e.g. 2002-10-01
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew McMillan | 2002-10-02 01:50:16 | Re: Connecting PostgreSQL db using Pear |
| Previous Message | Sean | 2002-10-01 19:20:10 | Re: Inserting Null Value or String Value |