Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20156 invoked from network); 9 Mar 2017 14:07:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2017 14:07:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.220.182 mail-qk0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:33479] helo=mail-qk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/B2-06022-38161C85 for ; Thu, 09 Mar 2017 09:07:02 -0500 Received: by mail-qk0-f182.google.com with SMTP id y76so120233947qkb.0 for ; Thu, 09 Mar 2017 06:06:59 -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=72m/4ZhqPXN2yAmEj50wTTdpLqqNKtJSy1JUXPRUfy8=; b=oW8/F3P/uHeeOvcNvnez62BFRmZ9V7+/Wm0iZ5HQsomxm/JisN2eCcl1QcyKX6r4hf uf1ewLH4eboapOYGAd/Hk7/34TqwVRdPsAurF8EYGEIvuQ2cKvM3E5C8bN9qaAKs3b7t 8op03xDvPUP5S9BTap0X/uoAyOgVW94d7UrzE9AkrFMr1E5//h5OTGuq8Get6Q72nhPh ztAvTfWJXUZAKJyMz+a1Y/NXfsQMfsyIOkYIAOBdD6Aaj+2zO49sA1isejRdFpDCoVMw 8mJxK3eWuPwFafiDeR8JNWptp+9xzsvBmlCOzxUuz1g+OTeIP8ThV2qccO68O1P7+IP6 aqoQ== 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=72m/4ZhqPXN2yAmEj50wTTdpLqqNKtJSy1JUXPRUfy8=; b=ak4M581qvGA03I2ZjqBtJqT2T8yKL7bpKNSftQVZJTBA3mM4RxOakC5//613tCUwIB aIG45Aiji02Q/HeSZxeLy+swSytWEJ51DfFfI9g6VylRSUkMKSJF9OUw+OT5zMsnZ/l9 frrsKFKyn+6GPgFIb86zFnibgfkForg4Q1EduC2ghZXS/jOgBuJcNOY+BA4c632paeCe OE1wa88Z1BWMhZOxF/MnTXbvYqEA/lcE84nPdWiAt8v/QdAU9Dxgfx13Oe9C9tK75M5Q VtPl7lnub6yho9nZaDdENCTWDeSD1/BPNWz/3z7pos09rm2EIlytdiAvh/2Z4bNj8U8W QTWw== X-Gm-Message-State: AFeK/H2Kx3wJTXJxDZWAi0dtv8tYNfwb1U3bNTmO6RUfNJ64LqgROT2eOnW+EeqORpJ86rZuONsWgAmoEz+hBA== X-Received: by 10.55.167.148 with SMTP id q142mr14603856qke.72.1489068416892; Thu, 09 Mar 2017 06:06:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.39.33 with HTTP; Thu, 9 Mar 2017 06:06:36 -0800 (PST) In-Reply-To: References: Date: Thu, 9 Mar 2017 09:06:36 -0500 Message-ID: To: Matteo Beccati Cc: Adam Baratz , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114fb312090bce054a4cc235 Subject: Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO From: ocramius@gmail.com (Marco Pivetta) --001a114fb312090bce054a4cc235 Content-Type: text/plain; charset=UTF-8 On Thu, Mar 9, 2017 at 5:03 AM, Matteo Beccati wrote: > Hi Adam, > > On 03/03/2017 16:47, Adam Baratz wrote: > >> > >> Based on some pain points with my team and things I've heard from > others, > >> I created an RFC to handle "national" character sets for emulated > prepared > >> statements: > >> https://wiki.php.net/rfc/extended-string-types-for-pdo > >> > > > > Thanks all for the feedback so far. I updated the RFC based on what I > > heard. Hopefully it clarifies some of the ambiguities mentioned and the > > motivation for making this change. It's ultimately about helping PDO > > articulate part of the SQL spec. > > > > Let me know if you have any new questions/concerns. > > I'm sorry for being late to the party. I too have some doubts, but > having clarified the fact that national character types are a SQL-92 > standard clears some of them. > > However, I see no reference about the expected input/output encoding > (Unicode data is a bit vague). Is it expected to be UFT-8? Or maybe > match the internal encoding of the driver (e.g. UTF-16?)? What happens > if I try to quote a latin1 string? > Since I am still skeptical about this, I asked around and told people to bind parameters with unicode strings and poke me back: works correctly. So what is this addition doing exactly? Shouldn't this be treated as an SQL Server *BUG* instead? Why push it on the toolchain? Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a114fb312090bce054a4cc235--