emqx/apps/emqx_plugin_libs
Andrew Mayorov 0a7f6c7d03
fix(mysql): ensure proper escaping in batch inserts
Also hexencode non-utf8 binaries. This is essentially an heuristic.
We don't know column types in runtime, and there's no simple way
to find them out. Since we're already doing full binary scan during
escaping it should be cheap to bail out on non-utf8 strings and
hexencode them instead.

Also introduce separate function to highlight that this escaping
is MySQL-specific.
2023-03-10 18:42:04 +03:00
..
src fix(mysql): ensure proper escaping in batch inserts 2023-03-10 18:42:04 +03:00
test fix(mysql): ensure proper escaping in batch inserts 2023-03-10 18:42:04 +03:00
rebar.config style: reformat emqx_machine, emqx_plugin_libs, and emqx_statsd 2022-04-23 09:55:50 +02:00