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 — Handle end of statement while parsing CASE alias · phpmyadmin/sql-parser@9cc6cc7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/Components
    • CaseExpression.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Components/CaseExpression.php‎

Copy file name to clipboardExpand all lines: src/Components/CaseExpression.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ public static function parse(Parser $parser, TokensList $list, array $options =
215215
for (; $list->idx < $list->count; ++$list->idx) {
216216
$token = $list->tokens[$list->idx];
217217

218+
// End of statement.
219+
if ($token->type === Token::TYPE_DELIMITER) {
220+
break;
221+
}
218222
// Skipping whitespaces and comments.
219223
if (($token->type === Token::TYPE_WHITESPACE)
220224
|| ($token->type === Token::TYPE_COMMENT)

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.