Re: Fix the inconsistent behavior of PDO::PARAM_XXX

From: Date: Sun, 05 Nov 2023 16:43:20 +0000
Subject: Re: Fix the inconsistent behavior of PDO::PARAM_XXX
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-121594@lists.php.net to get a copy of this message
Hi, Matteo > Regarding this past issue with PostgreSQL, it can be solved by > treating numbers larger than int4 as > unknown (as is the case now) > rather than as int8 (as in previous attempts). I'm sorry, this was my mistake. ```` select 1::boolean ; -- returns t select 1 = true ; -- ERROR: operator does not exist: integer = boolean ```` The conditions for casting and comparison were different. PDO_PARAM_INT still needs to be passed as unknown to PostgreSQL. Thank you!

« previous php.internals (#121594) next »