Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123148 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 1BD7F1A009C for ; Wed, 17 Apr 2024 14:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713365568; bh=GW/Nd648FmpvYeI/A8jqL15cR+EwBQTZCEnq+vsXyuU=; h=In-Reply-To:References:Date:From:To:Subject:From; b=OJguGcxZgxcTm1AFmBuch4kwKZzoivHfwlrrA1uGPmJSyIHg2e54dbboxmfl11+T+ RhyY25/wDXTol7y77LBskki9C9S2ZhuQdKORbGUBUn3+Q/BcQIrxS3NVA6iSKc/F8s IiHAZooKXwB5kAR2exLixZ8f3mu8K2FScxqggSA2Or+cDFoAWCmVKVo6T4ggiJpLRQ l+HUPQ3xBZKeIuNh/27C2cswyd/U0LdKPVSgZnF1WtGTIGGWrPhSQS+7wpsUgXKV8S KvARcwyufnbGhDOqa254Ue5qNIdeU2yhz+4CaUY+X0BfeQgbG25SWvOhmvYlk3b+y1 qcBmGLaqKxerQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ADBBE1808DB for ; Wed, 17 Apr 2024 14:52:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 17 Apr 2024 14:52:47 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 154481140173 for ; Wed, 17 Apr 2024 10:52:10 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 17 Apr 2024 10:52:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1713365530; x= 1713451930; bh=Qbc9SqbiMuvtGWj1kM/c20DYeOUHnKVRyomrE7WQ1DQ=; b=5 Trxf78E8OEATSFZY3ZV1eiRCUc3eRElSzuWvp9ZyWifDIb6WVk0TEzVqSBlPooGC dgR6KkcZ07pO42e249x7oJ0WsAdQOtRGhnxitCUH8fjKv65m+EryolfLI24heTD0 kGjLWzXuw4k15UBe8wXewH35/RgveFxReVujLJXQfeJ5p73buGaHf3Kz6Nu3v7t8 PXvB80lu4sL1EWCyUZWnQQj442iALmtrzNLSrl5CgSLTjfrpBiL1ywOAGXNZ1h5K mvUPISH3KszOcrhgAhJyG3pOdH8NmH43DnKB4zSOS4OFUwnPI9TPkNUkTk/fp2cF SgvGodORLc+FKianc1ZFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713365530; x=1713451930; bh=Qbc9SqbiMuvtGWj1kM/c20DYeOUH nKVRyomrE7WQ1DQ=; b=WU/ExEuUPV2V2NPtnMIDzvMO/j2Wwo2+1t84be/KYpm4 GqyMPaVGeoVu2z3aeogrtZnAU5vK0c+iHbOL+3tcB6HxL0kiJcIRKRB357KdCY8S X8zgWn4SnHRMew1Fcvm1Ylp8hxlQ10DqPMBjJUbtgK2HzP7PLET/R0ACH6O+Sr/H mkX+83nxVFZ4bUdnZK4EIV89jj/m5AorwLm19Ye1tp6d3lfWqrZR0gu0eRSkH+jO QoWXV3566qYv07P+K0wiBXQQ+stm2CweNZf/gDp3zbpVTYwD/zXzFf8HIwgYNnnv xDqoehvjlFkU1UtZspZ485TpClDuCfqpE8zd03GvQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejkedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9786E1700093; Wed, 17 Apr 2024 10:52:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <26c47eb5-a60a-459d-89e6-16f6f0634cba@app.fastmail.com> In-Reply-To: References: <00079548-1799-4215-8F73-EFDCD795532F@sakiot.com> <098996d6-32e4-460c-a82a-aeef3b7e61d3@beccati.com> <9A6577BD-3BC5-41E1-965D-4B30D16CDB3D@sakiot.com> Date: Wed, 17 Apr 2024 14:51:47 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC][Discussion] PDO driver specific parsers Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Wed, Apr 17, 2024, at 2:45 PM, Matteo Beccati wrote: > Hi Saki, > > Il 17/04/2024 16:30, Saki Takamachi ha scritto: >> Hi Matteo, >> >>> Thanks for the feedback. I will reference this issue as duplicate too in the RFC. >> >> Thanks for the reference to the issue. >> >> >>> I'm certain if we dig deep enough we'll find a few more. >> >> Agree. Maybe we can find something other than PostgreSQL. >> >> >> I have read through your RFC. If we change the default scanner from the current, is there a possibility that an unintended BC Break will occur? I don't think there is a problem with MySQL, but I'm a little worried about other drivers. > > I did a quick research and both Oracle and SQL Server seem only to > understand double single quotes. > > I agree we need more research, but it's already 4 database drivers we'd > be fixing by switching the default parser to standard SQL quotes. This all seems logical, but having separate parsers would mean that the SQL strings are no longer portable, yes? Eg, many frameworks and CMSes try to (claim to) support multiple DBs transparently. (MySQL and Postgres and SQLite, usually). Some even recommend using SQLite for testing, but MySQL for prod. This change would break that, wouldn't it? Because the escaping would necessarily be different for MySQL and SQLite, and thus the queries would break on one or the other? --Larry Garfield