Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98472 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2850 invoked from network); 10 Mar 2017 15:53:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2017 15:53:40 -0000 Authentication-Results: pb1.pair.com header.from=adam.baratz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.52 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.214.52 mail-it0-f52.google.com Received: from [209.85.214.52] ([209.85.214.52:34873] helo=mail-it0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/07-31244-30CC2C85 for ; Fri, 10 Mar 2017 10:53:39 -0500 Received: by mail-it0-f52.google.com with SMTP id m27so9710770iti.0 for ; Fri, 10 Mar 2017 07:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4SlNBXLccvVUS6soxFIn9X+2O1hYoIqIvUWK+nd3VVY=; b=J5i3Plqi/8eJ9J00T/+WuBZWvDwC/VvFe++/E+BpShtLQu2rfd7yASLW+Zz0hd82Re fOzXDobCV1U37/etaOVaV8nGUdSOsKnHy2oZo1XdvOOmk1xkc9k02jR+Bury4nTDXEDT d59KqEik9ASBchJ6N1WI7wR9iOXV8qJuWelpwyYcBiZ42m0TEnX3n0mVNuNbdAfDd9Nn Dc7ivF0jJY57hyUbJIungTNfXbyt5TTNCaJqFor0LWlZ1N3xufbuoSDnp2KzKRqZV7vn 5wNMgLbjdz86y2GX3ZbXbGZE4aA0W0Bdg2dknyENORiv5NZP7UYQXW18Qmvj4hHWpctU fz+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4SlNBXLccvVUS6soxFIn9X+2O1hYoIqIvUWK+nd3VVY=; b=nu+Ko/UYU5e7XRf/YJ9f9y3VR9NNMbXzm+Jp4z+iCOZVKfc5W1tv61dkA+xqXOqU/F rDGzGVIwm2cSNVYyww1bmYPtctGoR63CNrr49BKkbK9gRwW9UmEZRVSvf3l4O9NZwlu9 oZkYY+LOH7/8xpmKXMt03OT+pWNKebBl8tBsiDAKG9EqVvoVF8yK1EPoWpX5uvUZpM// dxiyk5MMJiwCghHBgP1N1Bv+kRmpvRI0tC6C5QRuXyJnjAOWBeUaKxpeGS0RYc67m4vG KavR9o/hb1tZRrAiocrSctxJEaVcGQJFwW+MnU1+ILaV7LJnr3O7l37eEaXLd8Kn5lPC qnxg== X-Gm-Message-State: AFeK/H1OUy/PMRO8Ro7U6e0uf27Pj9S4uvTpGw8Ctvrfgj00muMdppXbGtLdjv2Qfub8BGxgLgCtEsWTFNWWeg== X-Received: by 10.36.134.65 with SMTP id u62mr2666027itd.34.1489161217121; Fri, 10 Mar 2017 07:53:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.82.3 with HTTP; Fri, 10 Mar 2017 07:53:36 -0800 (PST) In-Reply-To: References: Date: Fri, 10 Mar 2017 10:53:36 -0500 Message-ID: To: Marco Pivetta Cc: Matteo Beccati , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c088fb85c6658054a625db8 Subject: Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO From: adam.baratz@gmail.com (Adam Baratz) --94eb2c088fb85c6658054a625db8 Content-Type: text/plain; charset=UTF-8 > > I've read the links, hence my skepticism and me labeling this as "yet > another way that SQL Server decides to make things harder and buggy". It is > a bug in SQL Server, unless I'm missing the reason for this to exist (or > maybe there was such a reason in 1991). > One of the links is MySQL specific. Apart from that, it's not accurate to characterize this as a bug with MSSQL. They used part of the SQL spec in an intended way. Yes, it's a little more cumbersome than having a single string type, but it doesn't help PDO users to wish other designs onto DBs. As for BC compliance, this will still break code, as current overrides to > prepared statements (in DBAL, specifically) directly compare the parameter > type to a constant (no bitmask comparison). > I meant that this change won't break existing code. But yes, others may need to modify their code to be compatible with this new feature. Within pdo, a bitmask is applied -- see uses of the PDO_PARAM_TYPE macro. It's probably worth replicating that in DBAL. Thanks, Adam --94eb2c088fb85c6658054a625db8--