Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Semicolon repeatedly suffixed onto SQL if query ends in comment #17635

@cjhewett

Description

@cjhewett

Describe the bug

If the end of an SQL statement is a comment, PHPMyAdmin will repeatedly inject a semicolon onto the end each time it is edited.

To Reproduce

Steps to reproduce the behavior:

  1. Go to for latest demo server https://www.phpmyadmin.net/try/ and use MariaDB
  2. Click on SQL
  3. Enter SELECT 1 -- foobar
  4. Press Run
  5. Press "Edit" then "Run" again
  6. SQL is now shown as SELECT 1 -- foobar;;, repeating step 5 will add another ; on each time.

Expected behavior

SQL should be SELECT 1 -- foobar;, or ideally I suppose, leaving my SQL unaltered and not adding or removing any semicolons.

Screenshots

image

Additional context

Apologies for reporting such a trivial thing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions