Fix deserializing SQL array with only one element
This commit is contained in:
@@ -74,9 +74,6 @@ where
|
||||
<T as FromStr>::Err: Into<Box<dyn std::error::Error + Send + Sync>>,
|
||||
{
|
||||
let mut raw_values: Vec<_> = raw.split(',').collect();
|
||||
if raw_values[0] == raw {
|
||||
raw_values.clear();
|
||||
}
|
||||
let mut values = Vec::new();
|
||||
for r in raw_values.drain(..) {
|
||||
values.push(r.parse().map_err(into_column_decode_err(index))?);
|
||||
|
Reference in New Issue
Block a user