Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120570 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 17550 invoked from network); 14 Jun 2023 07:03:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Jun 2023 07:03:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 73877180340 for ; Wed, 14 Jun 2023 00:03:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,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-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 ; Wed, 14 Jun 2023 00:03:14 -0700 (PDT) Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-3f9c60bc99cso16452581cf.0 for ; Wed, 14 Jun 2023 00:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686726194; x=1689318194; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=t7gawc//S9rhda4Ql8NTrDuSlUa2wfys+YSCReOlm/4=; b=h/CEQQkYQnFei9bGFCSOt+3aUEbtb4NRpemGCUJfZ127vCZyJNRUSe09wGvpkboOgr m1yAYMzb6KU9aQZZeJT3TlUl/sk7R5FkK2ixc8dbpeT09saKDxpHmX2RWFhWAQPDBL0j 7eog16+IkY6jfpfaJRTVLWKMBtTC/zp+cijhg7Qp1JCt2z+Ylk9TYXu+7IQUdaZJx81S 24GleRO/gD3EQW7akP6iumdBNAFVEGFzCEmzeQPVXr6LB6CLXUiGaiP78vCRr2jwFC7n cC8TafpAeoqBk0tz9i+5IWoeZ/bQcG+wFWpcicNYkVJ26zZ1HUVNj1v6SYiN5G7TwpTi 26rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686726194; x=1689318194; 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=t7gawc//S9rhda4Ql8NTrDuSlUa2wfys+YSCReOlm/4=; b=lmbbOw2anh+xBx85kodSVWjWzSLwpxWzWliDvDjNSK/RmMgPvXNHhMSsGAjQqRKUcw k5EFn4VNyyCMIpe/qnLkIo67EDC7XYNfzNXvvoxZ64RPdN/Jfx7VGcUmNQLETwljLbTM Kjv+HIE/p2GFoHmOb9X2xvKLXcMwkLMvciSUxSti3mxXLEVHezv2KEBVVyXzs1XZ6XWt tWGj1MVWnoG/fQyl+Nuj6o6tSWacXfmIITOa4a0lj5DBqTwhAfApiCQmXF+hfH3nwoe1 t7MAtglB5WXeq3zuKNkeBXY7DzCrFSRzO/TUaNnTif1sgr5aShNUV1hrJsrVJYnXR88D IUeQ== X-Gm-Message-State: AC+VfDxIpyZAyMoczIn2xTq35FltSvOv0QEFpOkCB9z1woi0o7MsXQsW QXUtNBz0hSAx67a36reo/JeXdWsCP4zE7s0dGak= X-Google-Smtp-Source: ACHHUZ6vKplfFMDPTLZemPqSKHl7tR7RdrvE3W9OJ1i0DN7FoTZWxRrXQYhRX2nZ2zz4EbxeHtn0vEDmTmTlT+w+Khs= X-Received: by 2002:a05:620a:8f02:b0:75b:23a1:830b with SMTP id rh2-20020a05620a8f0200b0075b23a1830bmr13656899qkn.6.1686726193847; Wed, 14 Jun 2023 00:03:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 14 Jun 2023 09:03:01 +0200 Message-ID: To: Vinicius Dias Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000009e22b405fe118b32" Subject: Re: [PHP-DEV] Possible RFC: PDOStatement::addBatch From: tekiela246@gmail.com (Kamil Tekiela) --0000000000009e22b405fe118b32 Content-Type: text/plain; charset="UTF-8" Hi Vinicius, What would be the reason to add this? A reason cannot just be that there is no such function. You can easily do it with a loop like you have just shown. There isn't really any other way unless we introduce some driver specific SQL builder. So what would we gain from it? Is it speed, security, efficiency? String concatenation isn't an alternative though. Regards, Kamil --0000000000009e22b405fe118b32--