Skip to content

Commit cc3511e

Browse files
committed
Merge branch 'backport/sql-parser-changes'
2 parents d0812c6 + 30d6bd1 commit cc3511e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wp-includes/sqlite/class-wp-sqlite-lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ public function parse_symbol() {
22602260
if ( null === $str ) {
22612261
$str = $this->parse_unknown();
22622262

2263-
if ( null === $str ) {
2263+
if ( null === $str && ! ( $flags & WP_SQLite_Token::FLAG_SYMBOL_PARAMETER ) ) {
22642264
$this->error( 'Variable name was expected.', $this->str[ $this->last ], $this->last );
22652265
}
22662266
}

0 commit comments

Comments
 (0)