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 — [BUG] JSQLParser 5.0: Generic: Update with true as value is parsed as column · Issue #2109 · JSQLParser/JSqlParser

[BUG] JSQLParser 5.0: Generic: Update with true as value is parsed as column #2109

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] JSQLParser 5.0: Generic: Update with true as value is parsed as column#2109
Copy link

Description

@lucarota
lucarota
opened on Nov 13, 2024
Issue body actions

Failing SQL Feature:

When updating a Boolean column, the value true is parsed as column.

SQL Example:

UPDATE TestTable SET Column1 = 'Tester', Column2 = true WHERE Id = 'AAS'    

Column1 and Column2 are parsed as a Column object.
Tester is parsed as a StringValue
true is parsed as Column object. Why? I expect it to be parsed as BooleanValue or something else value object.

Statement queryData = CCJSqlParserUtil.parse("UPDATE TestTable SET Column1 = 'Tester', Column2 = true WHERE Id = 'AAS'");

image

Software Information:

  • JSqlParser version 5.0 (same problem with the snapshot)

Activity

  1. lucarota
    added 2 commits that reference this issue on Nov 14, 2024

    fix: Issue JSQLParser#2109 true and false value parsed as column inst…

    9c17e4e

    fix: Issue JSQLParser#2109 true and false value parsed as column inst…

    1ffd2ab
  2. manticore-projects
    added a commit that references this issue on Nov 14, 2024

    fix: Issue #2109 true and false value parsed as column instead of Boo…

    7acf9d5
  3. manticore-projects commented on Nov 14, 2024

    @manticore-projects
    manticore-projects
    on Nov 14, 2024
    Contributor
    More actions

    Solved via #2110

  4. manticore-projects
    closed this as completedon Nov 14, 2024
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.