nushell/crates/nu-command/src
BlacAmDK 86faf753bd
Fix SQLite table creation sql (#8430)
# Description

The "CREATE TABLE" statement in `into sqlite` does not add quotes to the
column names, reproduction steps are below:

```
/home/xxx〉[[name,y/n];[a,y]] | into sqlite test.db
Error: 
  × Failed to prepare SQLite statement
   ╭─[entry #1:1:1]
 1 │ [[name,y/n];[a,y]] | into sqlite test.db
   ·                                                       ───┬───
   ·                                                             ╰── near "/": syntax error in CREATE TABLE IF NOT EXISTS main (name TEXT,y/n TEXT) at offset 44
   ╰────
```

# User-Facing Changes

None

---------

Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-03-13 10:11:28 -07:00
..
bits Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
bytes Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
charting Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
conversions Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
database Fix SQLite table creation sql (#8430) 2023-03-13 10:11:28 -07:00
dataframe Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
date Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
debug Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
deprecated Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
env Error out when config.nu has no editor configured (#8282) 2023-03-09 08:07:20 -06:00
experimental Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
filesystem Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
filters Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
formats Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
generators Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
hash Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
math Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
misc Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
network Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
path Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
platform Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
random Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
shells Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00
strings Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
system Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
viewers Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
default_context.rs Remove the 'env' command, as we have the variable (#8185) 2023-03-01 21:20:00 +13:00
example_test.rs cratification: Example support (#8231) 2023-02-27 13:58:56 -08:00
input_handler.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
lib.rs Cratification: Break out nu_cmd_lang into a separate crate (#8181) 2023-02-24 09:54:42 -06:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Document and critically review ShellError variants - Ep. 3 (#8340) 2023-03-06 18:33:09 +01:00