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 — select database() · Issue #1450 · JSQLParser/JSqlParser

select database() #1450

New issue
Copy link
New issue
Copy link
Closed
#1382
Closed
select database()#1450
#1382
Copy link

Description

@nasodaengineer
nasodaengineer
opened on Dec 27, 2021
Issue body actions

Describe the bug
When I want to get the currently used database, I find that it cannot be parsed

To Reproduce
Steps to reproduce the behavior:

  1. Example SQL
    String sql = "select database()";
  2. Parsing this SQL using JSqlParser with this statements
    CCJSqlParserUtil.parse(sql);
  3. Exception
Encountered unexpected token: "database" "DATABASE"
    at line 1, column 8.

Was expecting one of:

    "*"
    "STRAIGHT_JOIN"

Expected behavior

System

  • mysql 8.0.27
  • jdk-liberica-11.0.13
  • 4.2 or 4.3

Activity

  1. manticore-projects commented on Dec 30, 2021

    @manticore-projects
    manticore-projects
    on Dec 30, 2021
    Contributor
    More actions

    Keyword issues, which is solved in PR #1382 (pending).

  2. wumpz
    closed this as completedin #1382on Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.