-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Details for the issue
Problem: Import Table from CSV is not preserving quoted values as text.
Using Import - Table from CSV File, I am trying to import this csv file into an empty database. Values are double quoted to indicate that they should be preserved as text - for example, the FIPS column contains values that are five digit numbers with leading zeros, and these values are all double quoted.
When I import CSV, I leave the default quote character choice as double quotes, and the FIPS values I see in the preview look fine. But when I hit OK, it does the import and saves this column as an Integer, ignoring the double quotes. As a result the leading zeros from the values are dropped and the codes are no longer correct.
I tried all of the following, with no effect: leaving the trim option off, going under View - Preferences - Database and changing the default field type from Integer to Text, adding an integer id column in the CSV before the FIPS column (in case the first column is reserved as an integer key column), using single instead of double quotes to preserve text.
I'm using Version 3.10.99 SQLite Version 3.11.0. I'm running 64-bit Linux Mint 18.2 and am using the linuxgndu sqlitebrowser for ubuntu xenial.
Useful extra information
I'm opening this issue because:
- DB4S is crashing
- [ x] DB4S has a bug
- DB4S needs a feature
- DB4S has another problem
I'm using DB4S on:
- Windows: ( version: ___ )
- [x ] Linux: ( distro: ubuntu xenial___ )
- Mac OS: ( version: ___ )
- Other: ___
I'm using DB4S version:
- 3.10.1
- 3.10.0
- 3.9.1
- [ x] Other: 3.10.99_
I have also:
- Tried out the latest nightly version: https://github.com/sqlitebrowser/sqlitebrowser#nightly-builds
- [x ] Searched for an existing similar issue: https://github.com/sqlitebrowser/sqlitebrowser/issues?utf8=%E2%9C%93&q=is%3Aissue%20


