From: Raymond O'Donnell <rod@iol.ie>
To: kulmacet101@kulmacet.com
Cc: Andrew McMillan <andrew@morphoss.com>
Cc: pgsql-php@postgresql.org
Subject: Re: You might need to add explicit type casts.
Date: Mon, 29 Dec 2008 11:21:24 +0000
Message-ID: <4958B2B4.9060501@iol.ie> (raw)
In-Reply-To: <13f61b6746f3518943cc921d039e9b70.squirrel@webmail.kulmacet.com>
References: <49584E7C.6090409@kulmacet.com>
<13f61b6746f3518943cc921d039e9b70.squirrel@webmail.kulmacet.com>
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
------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rod@iol.ie, kulmacet101@kulmacet.com, andrew@morphoss.com
Subject: Re: You might need to add explicit type casts.
In-Reply-To: <4958B2B4.9060501@iol.ie>
References: <49584E7C.6090409@kulmacet.com> <13f61b6746f3518943cc921d039e9b70.squirrel@webmail.kulmacet.com> <4958B2B4.9060501@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox