Closed gaoqiangz closed 4 days ago
I modified existing Function
parsing,include a break change because JSON_OBJECT
support FUNC(<expr> : <expr>)
syntax:
DECLARE @id_key nvarchar(10) = N'id',@id_value nvarchar(64) = NEWID();
SELECT JSON_OBJECT(LOWER('USER_NAME') : USER_NAME(), LOWER(@id_key) : @id_value, 'sid':(SELECT @@SPID));
Break change:
pub enum FunctionArg {
Named {
name: Expr, // <<
arg: FunctionArgExpr,
operator: FunctionArgOperator,
},
Unnamed(FunctionArgExpr),
}
Please take a look!
I refactored function parameter list parsing,add some supports_named_fn_args_with_xxx
functions to the Dialect trait,please take a look!
Thanks again @gaoqiangz and @iffyio and @lovasoa
Solves #1506