From 795d29dc4ffb034c52ef2c0ac543b29667c8621e Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Wed, 30 Aug 2023 11:55:32 +0100 Subject: [PATCH] Changelog --- CHANGELOG.md | 5 +++++ src/func.rs | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c94afe305..287b09470 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * Fixed bytea literal syntax for Postgres https://github.com/SeaQL/sea-query/pull/666 * Fixed issues with semantics of parenthesis removal https://github.com/SeaQL/sea-query/pull/675 +* Fixed behaviour in `FunctionCall` when calling `arg` multiple times https://github.com/SeaQL/sea-query/pull/687 + +### Breaking changes + +* As part of https://github.com/SeaQL/sea-query/pull/687, calling `FunctionCall::arg` multiple times will append the arguments instead of replacing old values ## 0.30.0 - 2023-07-20 diff --git a/src/func.rs b/src/func.rs index 26a81fb0d..bba4efe57 100644 --- a/src/func.rs +++ b/src/func.rs @@ -44,6 +44,7 @@ impl FunctionCall { } } + /// Append an argument to the function call pub fn arg(mut self, arg: T) -> Self where T: Into, @@ -52,6 +53,7 @@ impl FunctionCall { self } + /// Replace the arguments of the function call pub fn args(mut self, args: I) -> Self where I: IntoIterator,