Skip to content

Commit c25fd03

Browse files
committed
Merge branch 'QA'
Signed-off-by: William Desportes <[email protected]>
2 parents 73b959b + fc3917d commit c25fd03

File tree

7 files changed

+2
-199
lines changed

7 files changed

+2
-199
lines changed

src/Context.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public static function isSymbol($str)
423423

424424
if ($str[0] === '@') {
425425
return Token::FLAG_SYMBOL_VARIABLE;
426-
} elseif ($str[0] === self::getIdentifierQuote()) {
426+
} elseif ($str[0] === '`') {
427427
return Token::FLAG_SYMBOL_BACKTICK;
428428
} elseif ($str[0] === ':' || $str[0] === '?') {
429429
return Token::FLAG_SYMBOL_PARAMETER;
@@ -450,8 +450,6 @@ public static function isString($str)
450450

451451
if ($str[0] === '\'') {
452452
return Token::FLAG_STRING_SINGLE_QUOTES;
453-
} elseif (self::hasMode(self::SQL_MODE_ANSI_QUOTES) && $str[0] === '"') {
454-
return null;
455453
} elseif ($str[0] === '"') {
456454
return Token::FLAG_STRING_DOUBLE_QUOTES;
457455
}

src/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ public function parseSymbol()
949949
$str = null;
950950

951951
if ($this->last < $this->len) {
952-
if (($str = $this->parseString(Context::getIdentifierQuote())) === null) {
952+
if (($str = $this->parseString('`')) === null) {
953953
if (($str = $this->parseUnknown()) === null) {
954954
$this->error(
955955
'Variable name was expected.',

tests/Parser/ParserTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function parseProvider()
2828
['parser/parse'],
2929
['parser/parse2'],
3030
['parser/parseDelimiter'],
31-
['parser/ansi/parseAnsi'],
3231
];
3332
}
3433

tests/data/lexer/ansi/lexAnsi.in

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/data/lexer/ansi/lexAnsi.out

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/data/parser/ansi/parseAnsi.in

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)