Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79286 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74008 invoked from network); 28 Nov 2014 19:16:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2014 19:16:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=peter.wolanin@acquia.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=peter.wolanin@acquia.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain acquia.com designates 64.18.2.206 as permitted sender) X-PHP-List-Original-Sender: peter.wolanin@acquia.com X-Host-Fingerprint: 64.18.2.206 exprod7og126.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.18.2.206] ([64.18.2.206:44530] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/71-59154-00AC8745 for ; Fri, 28 Nov 2014 14:16:17 -0500 Received: from mail-ie0-f178.google.com ([209.85.223.178]) (using TLSv1) by exprod7ob126.postini.com ([64.18.6.12]) with SMTP ID DSNKVHjJ/XqMt/p5mBoPmktNLQMRXMAjl3Ai@postini.com; Fri, 28 Nov 2014 11:16:16 PST Received: by mail-ie0-f178.google.com with SMTP id tp5so6499637ieb.9 for ; Fri, 28 Nov 2014 11:16:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=PLdji1e7lU7oLbicLMxmSElSLDuna1NF0NIhvgGfrpg=; b=A7puJxmmtO70EHd0Hvvp++4K5fg2tkVxBstCofyz+7Cj5vpFnaciMYA7iKp5VknZns HFXh3zDi4bc4y7nrW3mJkJC3peWfQp3xSB7mO4rRh4ExpZkAZSIO4LTBh15tIqF685Ys oWKRwPV53xtNaHsPqwjcXk8Gxfkl53NkJQCll9ksYfIidI8D40irDUWr0ImAkluz5jZw 0JN9NJQMjvsCCcOHAsSL0Stc6FZ/q7hDfJBhObPLl2ySNHfZHU2L1kLt4p3zUF//adRs 3Jy2G6RyDR+yy2e/x9b7ARwsKnxok4jSLMNAOdkFkN6HYNBf0HYANRlDkV4scVF7bSVx k7Pg== X-Gm-Message-State: ALoCoQk4l7aPwjnYPC+zqOpJybNS1I/w+mWM2vXLXIB7vlZnRelOrGzpw5mc4q4pSyY/rHbPbbeWi5vkHEJzGi2UUZjDci/hnYfalLY9VczGSY3N7JjRs+0du/tRZECKyBMSH4yeqbPogS5aBiApZB54I9PswgYvyA== X-Received: by 10.107.16.130 with SMTP id 2mr39483797ioq.81.1417202173595; Fri, 28 Nov 2014 11:16:13 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.16.130 with SMTP id 2mr39483784ioq.81.1417202173420; Fri, 28 Nov 2014 11:16:13 -0800 (PST) Received: by 10.42.107.80 with HTTP; Fri, 28 Nov 2014 11:16:13 -0800 (PST) In-Reply-To: References: <1415638978.23992.4.camel@kuechenschabe> Date: Fri, 28 Nov 2014 14:16:13 -0500 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PDO mysql - add feature to enforce single statements? From: peter.wolanin@acquia.com (Peter Wolanin) >>> > On Mon, Nov 10, 2014 at 12:02 PM, Johannes Schl=C3=BCter < >>> > johannes@schlueters.de> wrote: >>> > >>> >> On Thu, 2014-11-06 at 19:52 -0500, Peter Wolanin wrote: >>> >> > Suggested solution: add a PDO attribute that could be set on a >>> >> > connection or a driver option for PDO::prepare to enforce the limi= t >>> >> > of >>> >> > a single query being prepared or run. >>> >> >>> >> The issue is that disabling multi-query implicitly also disables >>> >> support >>> >> for stored procedures as the same flag configures handling of >>> >> operations >>> >> with multiple result sets. So this probably needs more thoughts >>> >> especially in order to get "similar" behavior with different >>> >> databases ... can you add a feature request in the bug tracker for >>> >> this? >>> >> >>> >> johannes >>> >> I've just added another test to address the concern from Johannes that setting this flag would interfere with stored procedures. It's a partial copy of the existing ext/pdo_mysql/tests/pdo_mysql_stmt_nextrowset.phpt which has an expected fail. The new test uses just native prepare (which does not fail) and runs the same test for setting the new connection attribute to either false or true creating a stored procedure that returns multiple result sets. see: https://github.com/php/php-src/pull/896 Thanks, Peter