discourse-data-explorer/spec
Alan Guo Xiang Tan 4236689d27
FIX: Errors when running query due to PG template patterns or comments (#189)
Before this fix, the use of PG template patterns containing ":" or the
use of "?" in comments in the SQL will result in an error being raised
because `DB.param_encoder.encode` calls ActiveRecord's `sanitize_sql_array` which is
meant for SQL fragments and not an entire SQL string.

Instead we change data-explorer to use `MiniSql::InlineParamEncoder`
instead which takes into account of template patterns and does not trip
on `?` which is a special param encoding character used by ActiveRecord.
2022-10-10 09:03:37 +08:00
..
fabricators FEATURE: Bookmarkable QueryGroups. (#177) 2022-06-14 23:07:02 +08:00
integration FEATURE: Add an API scope for running queries (#154) 2022-01-21 07:15:04 +03:00
jobs/scheduled FEATURE: destroy old hidden queries (#82) 2020-11-25 22:09:05 +05:30
lib DEV: Bump rubocop-discourse (#188) 2022-10-03 22:20:04 +02:00
requests DEV: Bump rubocop-discourse (#188) 2022-10-03 22:20:04 +02:00
tasks DEV: Bump rubocop-discourse (#188) 2022-10-03 22:20:04 +02:00
data_explorer_spec.rb FIX: Errors when running query due to PG template patterns or comments (#189) 2022-10-10 09:03:37 +08:00
guardian_spec.rb DEV: Clean up some specs code (#161) 2022-02-01 21:38:24 +01:00