GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ref #294 - Revert "ANSI_QUOTES lexer and parser test-suite proposal" · phpmyadmin/sql-parser@fc3917d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • Context.php
    • Lexer.php
  • tests
    • Parser
      • ParserTest.php
    • data
      • lexer/ansi
        • lexAnsi.in
        • lexAnsi.out
      • parser/ansi
        • parseAnsi.in
        • parseAnsi.out
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Context.php‎

Copy file name to clipboardExpand all lines: src/Context.php
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public static function isSymbol($str)
417417
}
418418
if ($str[0] === '@') {
419419
return Token::FLAG_SYMBOL_VARIABLE;
420-
} elseif ($str[0] === self::getIdentifierQuote()) {
420+
} elseif ($str[0] === '`') {
421421
return Token::FLAG_SYMBOL_BACKTICK;
422422
} elseif ($str[0] === ':' || $str[0] === '?') {
423423
return Token::FLAG_SYMBOL_PARAMETER;
@@ -443,8 +443,6 @@ public static function isString($str)
443443
}
444444
if ($str[0] === '\'') {
445445
return Token::FLAG_STRING_SINGLE_QUOTES;
446-
} elseif (self::hasMode(self::SQL_MODE_ANSI_QUOTES) && $str[0] === '"') {
447-
return null;
448446
} elseif ($str[0] === '"') {
449447
return Token::FLAG_STRING_DOUBLE_QUOTES;
450448
}
Collapse file

‎src/Lexer.php‎

Copy file name to clipboardExpand all lines: src/Lexer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ public function parseSymbol()
935935
$str = null;
936936

937937
if ($this->last < $this->len) {
938-
if (($str = $this->parseString(Context::getIdentifierQuote())) === null) {
938+
if (($str = $this->parseString('`')) === null) {
939939
if (($str = $this->parseUnknown()) === null) {
940940
$this->error(
941941
'Variable name was expected.',
Collapse file

‎tests/Parser/ParserTest.php‎

Copy file name to clipboardExpand all lines: tests/Parser/ParserTest.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ public function parseProvider()
2525
return array(
2626
array('parser/parse'),
2727
array('parser/parse2'),
28-
array('parser/parseDelimiter'),
29-
array('parser/ansi/parseAnsi')
28+
array('parser/parseDelimiter')
3029
);
3130
}
3231

Collapse file

‎tests/data/lexer/ansi/lexAnsi.in‎

Copy file name to clipboardExpand all lines: tests/data/lexer/ansi/lexAnsi.in
-24Lines changed: 0 additions & 24 deletions
This file was deleted.
Collapse file

‎tests/data/lexer/ansi/lexAnsi.out‎

Copy file name to clipboardExpand all lines: tests/data/lexer/ansi/lexAnsi.out
-73Lines changed: 0 additions & 73 deletions
This file was deleted.
Collapse file

‎tests/data/parser/ansi/parseAnsi.in‎

Copy file name to clipboardExpand all lines: tests/data/parser/ansi/parseAnsi.in
-24Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.