mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01:00
Expand lists loaded from sqlite
This commit is contained in:
parent
bf03b530c9
commit
2470e6dc24
@ -112,7 +112,14 @@ fn from_sqlite(args: CommandArgs, registry: &CommandRegistry) -> Result<OutputSt
|
|||||||
match value.item {
|
match value.item {
|
||||||
Value::Binary(vb) =>
|
Value::Binary(vb) =>
|
||||||
match from_sqlite_bytes_to_value(vb, span) {
|
match from_sqlite_bytes_to_value(vb, span) {
|
||||||
Ok(x) => yield ReturnSuccess::value(x),
|
Ok(x) => match x {
|
||||||
|
Tagged { item: Value::List(list), .. } => {
|
||||||
|
for l in list {
|
||||||
|
yield ReturnSuccess::value(l);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_ => yield ReturnSuccess::value(x),
|
||||||
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
yield Err(ShellError::labeled_error_with_secondary(
|
yield Err(ShellError::labeled_error_with_secondary(
|
||||||
"Could not parse as SQLite",
|
"Could not parse as SQLite",
|
||||||
|
Loading…
Reference in New Issue
Block a user