Re: You might need to add explicit type casts. - Mailing list pgsql-php

From Raymond O'Donnell
Subject Re: You might need to add explicit type casts.
Date
Msg-id 4958B2B4.9060501@iol.ie
Whole thread Raw
In response to Re: You might need to add explicit type casts.  (kulmacet101@kulmacet.com)
List pgsql-php
On 29/12/2008 04:17, kulmacet101@kulmacet.com wrote:

> I also found that the WHERE statements were not properly quoted, a 101
> mistake.
>
> WHERE id = 469 => WHERE id = '469'

Yes, this commonly bites people moving from earlier versions of
PostgreSQL to 8.3 - a lot of automatic casts have been removed. The
original error message suggests that this was your problem all along.

I'm curious as to why you've defined the "id" column as VARCHAR when you
seem to expect it to hold integers....unless of course there will be
non-numeric characters there also?

Ray.

------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-php by date:

Previous
From: kulmacet101@kulmacet.com
Date:
Subject: Re: You might need to add explicit type casts.
Next
From: pgdba@hush.com
Date:
Subject: force re-planning of prepared statements?