Re: PDO::PARAM_INT and pgsql driver

From: Date: Mon, 15 Mar 2021 13:12:31 +0000
Subject: Re: PDO::PARAM_INT and pgsql driver
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-113534@lists.php.net to get a copy of this message
Hi,

On 14/03/2021 21:18, Benjamin Morel wrote:
This is because the pgsql driver seems to treat everything as PARAM_STR, despite being explicitly requested to bind the value as PARAM_INT; the placeholder is therefore replaced with the string '4326' instead of the integer 4326. > [...] Is there any reason why the pgsql driver doesn't respect PDO::PARAM_STR?
Looks like a bug to me. I thought this had been fixed a while back, but apparently it wasn't. I'll try to find some time to investigate in the next few days. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

Thread (6 messages)

« previous php.internals (#113534) next »