Describe the bug
I am using ElectricSQL which generates migration SQL statements that contain SQL comments as well.
Example 1
-- Toggles for turning the triggers on and off
INSERT OR IGNORE INTO _electric_trigger_settings(tablename,flag) VALUES ('main.settings', 1);
Example 2
/* Triggers for table settings */
-- ensures primary key is immutable
DROP TRIGGER IF EXISTS update_ensure_main_settings_primarykey;
This results in calling the executeUpdateDelete method on the Statement class.
Look at this line which return in the above case "-- Tog" as Statement Type
Expected behaviour
It should call the respective method on statement object based on the SQL statement ignoring sql comments that starts with "--"
Smartphone (please complete the following information):
Describe the bug I am using ElectricSQL which generates migration SQL statements that contain SQL comments as well. Example 1
Example 2
This results in calling the
executeUpdateDelete
method on the Statement class. Look at this line which return in the above case "-- Tog" as Statement TypeExpected behaviour It should call the respective method on statement object based on the SQL statement ignoring sql comments that starts with "--"
Smartphone (please complete the following information):