Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing a text file #3407

Closed
niki7s1x opened this issue Aug 3, 2018 · 3 comments
Closed

Error when importing a text file #3407

niki7s1x opened this issue Aug 3, 2018 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@niki7s1x
Copy link

niki7s1x commented Aug 3, 2018

Details

I tried to import a text file into the .sqlite database with a country info from GeoNames.org (the table's primary key is "geonameid" as it comes from the originator). At the older versions, especially 3.0.0, the operations completes successfully, but at the newer versions it failed.

Steps to reproduce

  1. Create a .sqlite database with one table "geoname"; the columns are picked up from the http://download.geonames.org/export/dump/readme.txt -> paragraph "The main 'geoname' table has the following fields";
  2. Pick up and extract a .zip file with the country info, for example BG.zip;
  3. Try to import the extracted file BG.txt into "geoname" with UTF-8 encoding and tab(\t) separated.

Operating system

Windows 7 Ultimate, 64 bit.

SQLiteStudio version

3.2.1

@niki7s1x niki7s1x changed the title Error when importing text file @v3.1.1+ Error when importing a text file Aug 3, 2018
@pawelsalawa
Copy link
Owner

Try with version 3.2.1. It has a lot of bugfixes, including import-related.

@pawelsalawa pawelsalawa added bug Something isn't working question labels Aug 3, 2018
@niki7s1x
Copy link
Author

niki7s1x commented Aug 3, 2018

Exactly the version 3.0.0 did the import job (with a little text file correction - replacement of the double quotes(") with single ones, probably because the first are SQLite's reserved words, that messed up the import algorithm).

The problem is persistent in the latest version. This is a bug in the newest versions - broken functionality that have to be repaired.

Here are the files to produce the bug:
SQLiteStudio_ImportError.zip

@pawelsalawa pawelsalawa added this to the 3.2.2 milestone Aug 3, 2018
@pawelsalawa
Copy link
Owner

Fixed with #3413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants