-
-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Milestone
Description
When using placeholders in a select clause for a prepared statement, the parser stops at the first placeholder. For example, parsing "SELECT 1, 2, ?, 3" will include the expressions 1 and 2 in the SelectStatement object, but not the placeholder or 3.
PhpMyAdmin\SqlParser\Statements\SelectStatement Object
(
[expr] => Array
(
[0] => PhpMyAdmin\SqlParser\Components\Expression Object
(
[database] =>
[table] =>
[column] =>
[expr] => 1
[alias] =>
[function] =>
[subquery] =>
)
[1] => PhpMyAdmin\SqlParser\Components\Expression Object
(
[database] =>
[table] =>
[column] =>
[expr] => 2
[alias] =>
[function] =>
[subquery] =>
)
)
[from] => Array
(
)
[index_hints] =>
[partition] =>
[where] =>
[group] =>
[having] =>
[order] =>
[limit] =>
[procedure] =>
[into] =>
[join] =>
[union] => Array
(
)
[end_options] =>
[options] => PhpMyAdmin\SqlParser\Components\OptionsArray Object
(
[options] => Array
(
)
)
[first] => 0
[last] => 11
)