Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121594 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65362 invoked from network); 5 Nov 2023 16:43:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Nov 2023 16:43:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 674DB180505 for ; Sun, 5 Nov 2023 08:43:32 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 5 Nov 2023 08:43:31 -0800 (PST) Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-7ba05f119d3so2283598241.0 for ; Sun, 05 Nov 2023 08:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=youmind.jp; s=google; t=1699202611; x=1699807411; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ugzqy+femURWOJP5aET10g9jCpeJ/or7PNbN88w99rc=; b=PNbqXTJOziUp9V9GBZ/tVeXSgs/mRirpOcpqOaglFDFWXu0JeiQZ7M6w+ETinjej/1 3M0cYqosuFC58P4rmOBTQTLExL/KNqKQubCHmgjANVrG3sA4yJO5wcuSzOW5KZv3FAgK MglJ9Y6kHdvNGKgkSbbqT+C5Mb48hQX0qxQkoG04EWQbp+4TwSVNfDEw6C0+V66INI8T +yvL8kCwuvr8Xl1/3tCv3KKm9Gw73/OIEyM7c835UrzDPOe/GT1B+8YuiftSp9pim0x2 hwqYt/LGaSSFBUAR1NM/mYJKTjBcFh5rm0rEN7mDTX0i1ip36JzEcU0Fwx5UgxgGmOxj 01Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699202611; x=1699807411; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ugzqy+femURWOJP5aET10g9jCpeJ/or7PNbN88w99rc=; b=RJunS+l83xryroryKOAtgv51b65ZXoDnTqhe3/Rz05JOcyTvBrpQYuOYAlWvZUPAwq U8VamDIgtiBHVVhy64HkT012VeHafd+0pK3VJiONc7bxfVTCmG4RP1Q/pQMvI6Fi5nVm TT8/Ig2d+J3yP/Sibg0U64xFM8wcQMPYICZ3lw67TbZ1KS5uy3jcKPYuVqSHPayOGPmH sglN6DhyvQ3vfTd9X13ftlOnZlx4uBk8LL+swLaHqnM03k+eLhSfKDj7rgwXJ/GB2XLJ bw554kMOjtBtmfjMZoPatJd8yOEo2nxCQYtnaTzKq/HxTMEeodPDPYUyrG2w8bxNuYFj Dgig== X-Gm-Message-State: AOJu0Yw5JiTQRBgGxdZWB37o9TrwoEbwo9aj7rSUBCJyjtljLBQrIp9m K/A3CGSsw+i+ZeX2ZKMpLGLOcJVNJwndm09j9SKp5A== X-Google-Smtp-Source: AGHT+IHGNH78w9v9PhWRPC4YEuAjC+vgozEjnwIW2oW87j+EAxLq7asjmDFJdmgh/fJ9vACIc4RzbwrWHVE8OSiHryE= X-Received: by 2002:a05:6102:a16:b0:452:6478:3e24 with SMTP id t22-20020a0561020a1600b0045264783e24mr4057309vsa.12.1699202611083; Sun, 05 Nov 2023 08:43:31 -0800 (PST) MIME-Version: 1.0 References: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> <129fb16f-8d38-4951-b84d-f25799158e2b@beccati.com> In-Reply-To: Reply-To: Kentaro Takeda Date: Mon, 6 Nov 2023 01:43:20 +0900 Message-ID: To: Matteo Beccati Cc: Saki Takamachi , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX From: internals@lists.php.net ("Kentaro Takeda via internals") 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!