julienbourdeau/debugbar

broken format query

Closed this issue · 4 comments

When I click format option, the queries disappears, only one query works as expected

CleanShot 2024-04-13 at 01 03 20

Thank you @luiscobot ! I must be doing something wrong with Vue.js 🤔
I wasn't able to reproduce. Do you see any error in the console? I'm guessing something breaks the QueryItem.vue component.

Yes, when I click format I got this error in browser console

Error: Parse error: Unexpected "$1 LIMIT $" at line 1 column 52.
This likely happens because you're using the default "sql" dialect.
If possible, please select a more specific dialect (like sqlite, postgresql, etc).

CleanShot 2024-04-24 at 14 33 14@2x

This is my query
SELECT "field_service_groups".* FROM "field_service_groups" WHERE "field_service_groups"."number" = $1 LIMIT $2

Thank you @luiscobot I think this should fix it: #35

I'll make a new release this weekend.

Version 0.3.2 should fix this. If you don't use the ERB helper, make sure you defined the activerecord config (bottom of the page here)