Menu

#842 Comment filtering for statement seperation does not match for the database for Postgresql

Git
closed-fixed
nobody
None
5
2025-04-03
2022-05-17
Jonas L.
No

Adminer version: 4.8.1
Database: Postgresql 13.5

Problematic query:

SELECT 1
--;
SELECT 2

this works

SELECT 1
-- ;
SELECT 2

this does not work

Both queries should not work because the semicolon is commented out. But Adminer searches itself for the end of the query and does "-- " (with a space after the double minus) consider a comment but "--" (without space after the double minus) not.

Discussion

  • Jakub Vrána

    Jakub Vrána - 2025-04-03
    • status: open --> closed-fixed
     
  • Jakub Vrána

    Jakub Vrána - 2025-04-03

    Fixed by 36939926.

     

Log in to post a comment.