Open lasher23 opened 2 weeks ago
@lasher23 not really it is for the case where you have "INSERT INTO TABLE (name, email) VALUES ('Jeep','jeep@example.com') " this should pass through
@jepiqueau but then you dont provide a two dimensional array as parameter. The logic is only triggered if the array is a two dimensional array.
@lasher23 i will have an other look give me an example of statements that you want me to add to my test program thanks
@jepiqueau If i call executeSet with a two dimensional array. I always want to get into the multi statement logic. A simple example is i dont get it that i have to pass ? as parameter. What you are doing now is just execute the statement with an empty array as args which makes it replace it with null.
For example the following code raises no error:
executeSet("insert into table", [['a'],['b']])
This for sure is an error in my statement. But it would be very nice if the Plugin tells me that i am not allowed to execute this. For example it was very hard to spot the bugs with the case insensitive 'VALUES' because there was never an error from the plugin, it just did not replace the values.
Is your feature request related to a problem? Please describe. Currently it is not easy visible if you make a mistake while using the multi row statements.
Describe the solution you'd like If nothing is replaced with the regex i would like that an error is thrown. Replace the following: With something like this: