Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121815 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26376 invoked from network); 27 Nov 2023 09:50:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Nov 2023 09:50:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B3A7180048 for ; Mon, 27 Nov 2023 01:50:46 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 ; Mon, 27 Nov 2023 01:50:45 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 88CC15C01BA; Mon, 27 Nov 2023 04:50:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 27 Nov 2023 04:50:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1701078638; x=1701165038; bh=TaYFKcXLwvQW3Vcz6Ta0F2uV7mQOCECl/va orAWuT9I=; b=LG/d8Bukt01LlOgQYOMKcyBwy2I29L+7AiIpCs/suO/As304TOW dr6HQ6Ap14ORRdPlSOAckzcZJjrJzgzNBKYdF/KTkOjBwbjltD7RS6XOBnxxI46u e290sQoKk5gRIRZah2JMrwPMVX8NRrGOz59vVn+moS2yAZ+59Epy6sKBUMozYW7Z SVF1S73KBkbyyeEmrvfI3O4ucsWcz71ULY1/BEBIWSf825W0CpCPwimRAh0N5H/W EQziUq2EPXyl5k0jRZ70P8d40+9ac8DS1h+KG4t4DTuRfkX8LPCEcHOJYrjkOs5m /Zp959ZnXe9Chl6oINW+H15dssbbe5D/ZsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701078638; x=1701165038; bh=TaYFKcXLwvQW3Vcz6Ta0F2uV7mQOCECl/va orAWuT9I=; b=nLIZQWT5NusAHLytl4Br9Hd2GRAQCHt6hNlcQvuUPUyW4cfHUvP yFg4W+vdpV/132P7c1ubu5t1OjFCluGi6ZS1m7BGFeKn0CGvXZKnAVcBL2tZUwnI w5QJicrESERBwveNIViUAy8F3AWdnF7jtyUxx05I/vPEKEeiNBNYWYDTWQAx9Lto XayiZ/WZyq0XIGxgQhbhiLJZtjQkUspYJXmBjKtbq5is90HIhumQdBtoYhy7Nh16 E1S907Rw1A/TuT8ORvboRy1w8KCRK+bOuUGJ8U7nmnMcOyiI7yG5FO4b5/GASNLU hFvX2xcAi0ejQ/H0oW6wQsTwn81p80gZhEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiuddgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeforght thgvohcuuegvtggtrghtihcuoehmrghtthgvohessggvtggtrghtihdrtghomheqnecugg ftrfgrthhtvghrnhepudfgtdfhhefgjeelvedtveeltdehhffgtedutdeutdeuiedugeeh geevhfefhffgnecuffhomhgrihhnpegsvggttggrthhirdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtvghosegsvggttggr thhirdgtohhm X-ME-Proxy: Feedback-ID: ie60946b7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Nov 2023 04:50:37 -0500 (EST) Message-ID: Date: Mon, 27 Nov 2023 10:50:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: it To: Saki Takamachi Cc: PHP internals References: <17F3158B-EB1C-4546-A24D-F7DA957BA4B7@sakiot.com> <07141C6E-8677-484C-9F31-EC35367536B4@sakiot.com> In-Reply-To: <07141C6E-8677-484C-9F31-EC35367536B4@sakiot.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PDO] I want to unify the behavior when changing the autocommit mode setting while a transaction is open. From: matteo@beccati.com (Matteo Beccati) Hi, Il 27/11/2023 10:23, Saki Takamachi ha scritto: > As you say, such behavior varies from DB to DB. However, with the current implementation of PDO, we don't know how it will work until you actually try it, and each driver has different behavior, so it is important to describe how it works in the documentation is also in a difficult situation. > > Personally, I think it would be better if specifications could be standardized to a certain extent, within reason, but what do you think? Realistically, I would think it is extremely rare that anyone is both usin autocommit and is planning to switch database type from mysql to firebird or others. Even turning on autocommit after having already made operations on the database seems either an application bug or something that is done on purpose. In the latter case, I suppose they would expect the behaviour to be compliant with the database standards. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/