Menu

#738 Strange SQL-query form

Git
closed-fixed
nobody
None
5
2021-02-06
2020-02-10
azz
No

1) Move to "SQL command" page
2) Past SQL to SQL-query form:

SELECT *
FROM
  "log" lc
  JOIN "con" c ON c.id = lc.id
WHERE
  "c_id" IN ($1,$2) AND
  "timestamp" >= $3 AND
  "timestamp" <= $4
  AND (
    data->>'code' = $5 AND data->'data'->>'key' = $6
  )
  OR (
    data->>'code' = $7 AND data->'data'->>'key' = $8
  )
ORDER BY "lc"."id" DESC
LIMIT 10 OFFSET 0

3) Try to delete (via Del or Backspace) parameters $1 or $2
As result cursor jump to the first/last symbol of the query, depending of browser.
Tested on Windows 7, FF 72.0.2, IE 11.0.9600.19569, Chrome 80.0.3987.87

Adminer version 4.7.6, with no other plugins or css

Discussion

  • Jakub Vrána

    Jakub Vrána - 2020-03-06
    • status: open --> closed-works-for-me
     
  • Jakub Vrána

    Jakub Vrána - 2020-03-06

    I couldn't reproduce this. Which DB server?

     
    • azz

      azz - 2020-03-06

      Interesting. I see this only in PostgreSQL. If server MySQL, all ok. Also, in PostgreSQL the sql highlight is broken after "SELECT *"

       
  • Jakub Vrána

    Jakub Vrána - 2021-02-06
    • status: closed-works-for-me --> closed-fixed
     
  • Jakub Vrána

    Jakub Vrána - 2021-02-06

    Fixed by 64d4818a.

     

    Last edit: Jakub Vrána 2021-02-06

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.