Fixed a bug on windows when redirecting STDIN for SQL import, e.g. dolt sql < dump.sql. Also fixed up ip2nation sample so that it successfully imports

Signed-off-by: Zach Musgrave <zach@liquidata.co>
This commit is contained in:
Zach Musgrave
2019-08-09 12:48:19 -07:00
parent 7e969ffb51
commit 9b9ec6dc3e
3 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
CREATE TABLE ip2nation (
ip int(11) unsigned NOT NULL default '0',
ip int(11) NOT NULL default 0,
country char(2) NOT NULL default '',
PRIMARY KEY (ip)
);
@@ -11,8 +11,8 @@ CREATE TABLE ip2nationCountries (
iso_code_3 varchar(3) default '',
iso_country varchar(255) NOT NULL default '',
country varchar(255) NOT NULL default '',
lat float NOT NULL default '0',
lon float NOT NULL default '0',
lat float NOT NULL default 0.0,
lon float NOT NULL default 0.0,
PRIMARY KEY (code)
);