I tried a nested query. Instead of letting me know the regex is not valid or pointing out differences in the string literal versus the regex pattern, it said query not expected and unable to match actual versus expected query respectively.
Please clarify the regex was invalid in the panic message or a compile time warning please.
I tried a nested query. Instead of letting me know the regex is not valid or pointing out differences in the string literal versus the regex pattern, it said query not expected and unable to match actual versus expected query respectively.
Please clarify the regex was invalid in the panic message or a compile time warning please.
Stack overflow question here: https://stackoverflow.com/questions/58142191/call-to-query-with-args-was-not-expected-in-go-sqlmock-for-compound-sql-quer/58160875#58160875.
Example of working query:
Example of Invalid query unable to match:
Example of invalid regex query skipped in evaulation: