Re: PDO SQLite: statement attributes for SQL text retrieval

From: Date: Fri, 03 Apr 2026 18:12:56 +0000
Subject: Re: PDO SQLite: statement attributes for SQL text retrieval
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-130555@lists.php.net to get a copy of this message
> But two things here are unclear to me: > - What's insufficient with ->queryString and other > existing features? > Does one of these overlap with ->queryString or not? > The output of ATTR_SQL and queryString are essentially the same; ATTR_EXPANDED_SQL is the novelty that gives you access to the resolved prepared statement. So the ATTR_SQL is there mostly for completion, if ever something changes in terms of how PHP does pre-prepare handling this could have utility. - What's so special about SQLite? Wouldn't the same need be just as present > for any other driver? > > Nothing special, just that it provides library functionality to get this data programmatically. -- Ilia Alshanetsky Technologist, CTO, Entrepreneur E: ilia@ilia.ws T: @iliaa B: http://ilia.ws

« previous php.internals (#130555) next »