-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to escape single backtick in SQL values #4925
Failing to escape single backtick in SQL values #4925
Comments
Both @HindujaB and I were able reproduce the issue. We started off with 2201.8.1 and there it was working. Then we went down with the ballerina version. At 5.2 I was able reproduce the issue. The details of the sql and DB in the Dependencies.toml as follows. [[package]]
org = "ballerina"
name = "sql"
version = "1.9.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerina", packageName = "sql", moduleName = "sql"}
] org = "ballerinax"
name = "java.jdbc"
version = "1.9.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "sql"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerinax", packageName = "java.jdbc", moduleName = "java.jdbc"}
] However, after I reproduced it in 5.2, this is reproducible in 8.1 also. I tried deleting |
@niveathika is looking into this further, she discovered the fix done for the original issue(#2056) is incomplete. She will send a patch reverting the original fix. ETA for the fix will be coming Monday. |
Description:
$subject.
Steps to reproduce:
Try executing this code.
It gives the following error:
The issue is caused by the
reason: "`"
in the first line of the main function.Affected Versions:
2201.5.2
Related Issues:
#2056
The text was updated successfully, but these errors were encountered: