postgresql-dart
postgresql-dart copied to clipboard
Substitute value error
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.
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')"); });