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 64bd0fb commit daf2d50Copy full SHA for daf2d50
src/data/value/methods/binary.rs
@@ -116,11 +116,16 @@ comparative_binary_ops!(
116
117
impl Value {
118
pub fn string_concat(self, other: Self) -> Result<Self> {
119
- Ok(format!(
120
- "{}{}",
121
- String::convert_from(self)?,
122
- String::convert_from(other)?
123
- )
124
- .into())
+ if matches!(self, Value::Null) || matches!(other, Value::Null) {
+ Ok(Value::Null)
+ } else {
+ Ok(format!(
+ "{}{}",
+ String::convert_from(self)?,
125
+ String::convert_from(other)?
126
+ )
127
+ .into())
128
+ }
129
+
130
}
131
0 commit comments