Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101044 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93943 invoked from network); 3 Nov 2017 19:49:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2017 19:49:29 -0000 Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.123.236 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.123.236 box.beccati.com Received: from [176.9.123.236] ([176.9.123.236:49639] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/CC-09857-648CCF95 for ; Fri, 03 Nov 2017 14:49:28 -0500 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 746B02002F2; Fri, 3 Nov 2017 20:49:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1509738563; bh=mlvVdKq5kVGJjbvDmxLaAPx9OrWs2gVQvptRdbgHunc=; h=Subject:To:References:From:Date:In-Reply-To:From; b=OXr0Xms02fYWqTRro5DsDcNQG+bcRizO+AIF+I0EqIkL99PqbyxN2rdms5AfdkmLz 06jfX0Qn4cflcK3r8twOzp8Psx3mYaRnbDjaZc9jBmZBV1q1oklZy8VqiO2bfhX/SX jcVpGduFzsk/DJhMEd2bARCISDTocgcNJuezt6OMW/2e8wGDVUIc0mIZJm6yfpNNDc TeTyWDVCLWkzousB464CUajx0UdL3tB/h61bOxLOmqnBihPRHh48SUpEMPB+AdzgTl o2mjbDJ0S420imz/oCq1pYJsXfIcNLknWF9fuWDnlWuajXG3ULN8bFWuCcOxCWOgcs 49MLcHXimq37w== To: Scott Arciszewski , PHP Internals References: Message-ID: <7e7d69c9-8383-9cd0-9a54-0e7e4bb80775@beccati.com> Date: Fri, 3 Nov 2017 20:49:20 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Idea: PDO - Single-round-trip prepared statements From: php@beccati.com (Matteo Beccati) Hi Scott, On 03/11/2017 16:33, Scott Arciszewski wrote: > 1. Which DB drivers (and which versions) support 1RT prepared statements in > addition to 2RT prepared statements? > 2. Is there a better name for this usage than safeQuery()? > > If this turns out to be a good idea, I'll write up an RFC targeting PHP 7.3. I've added a similar feature to pdo_pgsql a while ago (PDO::PGSQL_ATTR_DISABLE_PREPARES), which is not enabled by default. It is basically somwthing in between real prepared statements (which is the default on pdo_pgsql) and emulated prepares, and it uses libpq's own PQexecParams function. At that time I had checked if libmysqlclient offered a similar function, but it didn't seem like it, so I went for the pgsql-only constant. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/