From 2470e6dc24a19fe913def43fd35c31e7981e8020 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sat, 31 Aug 2019 14:23:29 +1200 Subject: [PATCH] Expand lists loaded from sqlite --- src/commands/from_sqlite.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/commands/from_sqlite.rs b/src/commands/from_sqlite.rs index 2ebf67690..3bcfa703c 100644 --- a/src/commands/from_sqlite.rs +++ b/src/commands/from_sqlite.rs @@ -112,7 +112,14 @@ fn from_sqlite(args: CommandArgs, registry: &CommandRegistry) -> Result 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(_) => { yield Err(ShellError::labeled_error_with_secondary( "Could not parse as SQLite",