SQL set operation equality: NULL != NULL
(&self, other_values: &[Value])
| 309 | impl Row { |
| 310 | /// SQL set operation equality: NULL != NULL |
| 311 | fn sql_set_equal(&self, other_values: &[Value]) -> bool { |
| 312 | if self.positional_values.len() != other_values.len() { |
| 313 | return false; |
| 314 | } |
| 315 | |
| 316 | for (self_val, other_val) in self.positional_values.iter().zip(other_values.iter()) { |
| 317 | // In SQL set operations, NULL != NULL |
| 318 | if matches!(self_val, Value::Null) || matches!(other_val, Value::Null) { |
| 319 | return false; |
| 320 | } |
| 321 | if self_val != other_val { |
| 322 | return false; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | true |
| 327 | } |
| 328 | |
| 329 | /// SQL set operation equality for named values |
| 330 | fn sql_set_equal_named(&self, other: &Self) -> bool { |