Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123240 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 74FA21A009C for ; Tue, 30 Apr 2024 17:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714499347; bh=zi3LHAIMzj0Mzg1nEP6kD5uQrfDI46v8flwtJk/GTSM=; h=In-Reply-To:References:Date:From:To:Subject:From; b=bdqmjuzdLQsOy7VNHQJ6nbunfwjIILFNPZsyDxQvFlfT/jAlmHmIRUpyfCLpX9UX0 aBinBDXJXZPSuUdrHNBmr37oYaBxWcVDcYP0OoExsCN5Tyr4WQohdsHQVygW7I8RfB 8skltaXfFca64wK3Hm9afK/S6cKDN/Ehz8dUktlrYd7GZ6j1EAInteIqfVesq7bFZg h7zKUJhuHUoyPwJgTUB9OZAERxXQqBYUzgxhAWeiw9yXE3I1SlPTnGMuavgtovW4RG iJirz846QXvs2BT9vAFREubIQPVdxu69OYoDmCKTcdljkEWb2BQStMYeaK4g2wkFGU FMvadfV7Nh2aA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2E0C2180056 for ; Tue, 30 Apr 2024 17:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout5-smtp.messagingengine.com (fout5-smtp.messagingengine.com [103.168.172.148]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 30 Apr 2024 17:49:04 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 0BC33138037F for ; Tue, 30 Apr 2024 13:48:20 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Tue, 30 Apr 2024 13:48:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1714499300; x= 1714585700; bh=iJflKeAF9IIe8bDd3PB9BDnLP/MqlaajuvVvLY9PzUw=; b=J Vw9RdenbwswYrQh/qEoWQUjnHfupV15XnV8yzyGUqYF3v5A8W6E1/SFbNDtnGxP+ 1T3z3KavKM4C0GW2Gjn338sDEFOqDNSxcRm5siahjPA45srqC6oAsySl2+OwUz7J TFr+zE69NlNEE9nc4Q+e9/RBU0zkpnPCKQOAHad5BVbIfunRng0BbZ8MfqxEAV+u A8StVZMoDBjCq8nE1CXefx3sSeKlG7ZpUUecyrwEim7MzSjgi55+HoLT13Xu3Z78 UjeIIglvMXUVLAiwKUOucdwNk2VFRkR9qbblI1PLPXCigIIqhElmOfUjxKiYqFTk Fl7e4D/IcJqlonc7u1vKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714499300; x=1714585700; bh=iJflKeAF9IIe8bDd3PB9BDnLP/Mq laajuvVvLY9PzUw=; b=izXexk3SVsByCKoEXZ9lh+CQUt9cW4KN8GVX71r3k2l/ PnrxPPxQlvpqqObu4HNAy3/H334A5ZoGrioB5hWdfW3/CEc9J/pH4CV6B64lSDD6 2wC+JYwjhhYb2nTgw4nGLEUA3ecMfNjwsoGGf0Vo9Kd41hOUymNVqjExGtPLPB1Q tYHPU3V3y0iNuZbF/TYGhbaCSuK7jvLU/9vI0ZwfWnF63HFD94tZzIGHnCGVjYGt Sr9Q93Cdu9Jt8TVM5qAmtyx38bgv4qbg24xLpyfT1dHX8OPPSGkifB/r5LGc3RWK jitSu0MGdpiWv2u2Bx3qTVBUlqT2wXNTAriS10ijHA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddufedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnheptdejkeejhfevgeefgfdtteethfeuhedttefggfej keekgfeivdeiffekkedvtdejnecuffhomhgrihhnpegvgihtvghrnhgrlhhsrdhiohenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhih sehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 709C517019DD; Tue, 30 Apr 2024 13:48:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-416-g2c1796742e-fm-20240424.001-g2c179674 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: In-Reply-To: References: Date: Tue, 30 Apr 2024 17:47:58 +0000 To: "php internals" Subject: Re: [PHP-DEV] Proposal to Create a MariaDB Alias for the MySQL PDO Driver Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Tue, Apr 30, 2024, at 4:50 PM, Arvids Godjuks wrote: > Hello, > > I'm splitting this discussion from https://externals.io/message/123183, > see details at https://externals.io/message/123183#123234 and > https://externals.io/message/123183#123236 to keep the original thread > clean. > > There's a clear divergence in functionality between MySQL and MariaDB. > As PDO evolves to accommodate database-specific drivers, it's sensible > to introduce a MariaDB alias for the MySQL driver. Although the mysqlnd > library handles networking protocols for both, practical higher level > usage increasingly demands differentiation at the database layer, much > like Doctrine's recent updates requiring distinct identification of > MariaDB vs. MySQL. > > I propose establishing a MariaDB namespace. This would allow for > explicit implementation of database-specific functions and help in > correctly mapping methods and queries to the respective database. > > Thoughts? Questions? I agree with this. Even if the wire protocol isn't different right now, the SQL syntax is. Giving a "native" hook point for people to vary their DB is useful, and sets us up for when there are wire or parser differences later. Bear in mind that MySQL now also has the mysqlx protocol, which is basically a native query builder that bypasses an SQL string entirely. MariaDB has no such thing. I don't know how that would play into PDO at all, but this sort of split would give us a natural starting point to figure that out in the future. --Larry Garfield