What does PDO::query actually do ?
Does it query the SQL ?
If it queries the SQL, I think the data must be in the PDOStatement object as the result of the query..
But, what I find is just the SQL statement itself. So, I think it does nothing but just store the sql statement to the PDO statement property.
public 'queryString' => string 'SELECT * from posts' (length=19)
And, to get the data, we must fetch it using PDOStatement::fetch
So, what does PDO::query do ?
Why doesn't it just get the data ?
Is there any principle of design that makes PDO like this ?