nushell/crates/nu-command/src/database
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
..
commands Fix SQLite table creation sql (#8430) 2023-03-13 10:11:28 -07:00
values Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
mod.rs Remove sqlparser SQLite commands (#7040) 2022-11-10 11:14:48 +13:00