We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c584e commit f76c9ddCopy full SHA for f76c9dd
src/webserver/database/sql.rs
@@ -300,8 +300,10 @@ fn function_arg_expr(arg: &mut FunctionArg) -> Option<&mut Expr> {
300
#[inline]
301
pub fn make_placeholder(db_kind: AnyKind, arg_number: usize) -> String {
302
match db_kind {
303
- // Postgres only supports numbered parameters
+ // Postgres only supports numbered parameters with $1, $2, etc.
304
AnyKind::Postgres => format!("${arg_number}"),
305
+ // MSSQL only supports named parameters with @p1, @p2, etc.
306
+ AnyKind::Mssql => format!("@p{arg_number}"),
307
_ => '?'.to_string(),
308
}
309
0 commit comments