Skip to content
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

Substitute value error #168

Open
Iskren1990 opened this issue Sep 21, 2021 · 1 comment
Open

Substitute value error #168

Iskren1990 opened this issue Sep 21, 2021 · 1 comment

Comments

@Iskren1990
Copy link

Use case

await connection.transaction((ctx) async {
await ctx.query("INSERT INTO table (message) VALUES (server@localhost:5432/ep)");
});

Should be valid. Instead it throws substitute value error, while we do not need substitution.
Suggestion, in case no substitution values are provided use the provided string.

@zambetpentru
Copy link

Hey @Iskren1990

If I'm understanding when you quote the text string does it work?

await connection.transaction((ctx) async {
await ctx.query("INSERT INTO table (message) VALUES ('server@localhost:5432/ep')");
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants