Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122280 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50702 invoked from network); 5 Feb 2024 01:28:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Feb 2024 01:28:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1707096576; bh=jzUthTWBAYmR+geej82QWXh37vt6gvBjQ+xhZpVQQws=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=S7sFhUsfcJT2oio0nYPmIIvxlEy6dUvs1c/eE7LZGsZ+X1MK6IxoJf/B3QkTgelSa /sq8jD/JC7/1rgoTpZs9FRzudF29cSbvet9v4rZo00oGB5/6GInxhwjKvLXoPeh2GY trLdpydlP/C2BiAcNPpq8xUVsuhQhrd4yhGm+D1Al6Be288pIcBhJaSvyZxvAnEpTh ggN3WevqFnc2O+IK4g71CQovMcNnUPc5ZTMtHvdXZcNR3veXOApE9XujLoPS4hZCON gWUkaptFkkbQhXeAcPu7Fq2S3iLA60OW3WPeKiUPeiGZjr7YjJQ8CMHyt5XLV4hONV 3hojGChwLyTKQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EFBB8180042 for ; Sun, 4 Feb 2024 17:29:34 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 ; Sun, 4 Feb 2024 17:29:34 -0800 (PST) Received: from smtpclient.apple (128.150.159.133.rev.vmobile.jp [133.159.150.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id CB4884001E; Mon, 5 Feb 2024 10:28:40 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1707096521; bh=jzUthTWBAYmR+geej82QWXh37vt6gvBjQ+xhZpVQQws=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=HqFHo6nknc9eNoBYNrSV9z+JgzVI8uA3Emvuj9/FuMjmKkG3ZJ/E6ZEV79UilJpTN B41X/7DOG95ZBDxzMvcTHeXgtwrzzqtiKJ9Wf8FY88VwNnwSpmm0e+h5MqANK/wfMq 9yvKyr15x3PECKBb1r0WEnbAhR2RmiX6EBTbpPEs= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) In-Reply-To: Date: Mon, 5 Feb 2024 10:28:27 +0900 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <325E790F-5E88-4559-862F-6C4ACBC89779@sakiot.com> To: Kamil Tekiela X-Mailer: Apple Mail (2.3731.700.6) Subject: Re: [PHP-DEV] [Proposal] Add `savepoint()` method to PDO From: saki@sakiot.com (Saki Takamachi) Hi Kamil, > Why does this have to be done in PHP? Why can this not be done in SQL? Of course, we can also do it with SQL. Indeed, many frameworks do that. = However, if we think about it from that perspective, functions such as = `beginTransaction()` and `commit()` can also be executed with SQL, = except for some drivers. Savepoint can still be used using SQL, but I'm thinking about adding it = as a method for convenience. > Also, I am not sure that mysqli implements this properly. It=E2=80=99s = probably not the best extension to take an example of. Since there was already an implementation in mysqli, I thought it would = be natural to implement it in PDO as well, but based on what you = mentioned, I may need to think about this a little more. Regards. Saki=