xuxiang

Results 21 comments of xuxiang

root@ubuntu:~/go/bin# ./go-cve-dictionary -v go-cve-dictionary 0.1.1

And I found nvd.CveDetailID always == 0 in insertIntoNvd ``` func (r *RDBDriver) insertIntoNvd(cves []models.CveDetail) error { var err error var refreshedNvds []string bar := pb.New(len(cves)) if c.Conf.Quiet { bar.Output...

root@ubuntu:~/go/src/github.com/kotakanbe/go-cve-dictionary# git rev-parse --short HEAD c2bcc41

This is in sqlite. that's ok ``` root@hk:~/go/bin# cd ../src/github.com/kotakanbe/go-cve-dictionary/ root@hk:~/go/src/github.com/kotakanbe/go-cve-dictionary# git rev-parse --short HEAD c2bcc41 root@hk:~/go/src/github.com/kotakanbe/go-cve-dictionary# cd ~/go/bin/ root@hk:~/go/bin# ./go-cve-dictionary fetchnvd -modified 0 / 1 [------------------------------------------------------------------------------------------------------------------------------------] 0.00%[Aug 8 23:00:28]...

But in mysql will insert again ``` root@hk:~/go/bin# docker rm -f mysql mysql root@hk:~/go/bin# sudo docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=chHUIDCUAUaidfhasuadasuda -d mysql:5 b68ae526bcd7016579f63f4cf0af00504c154ad22e2fad9910f480b8e88d37b6 root@hk:~/go/bin# root@hk:~/go/bin# root@hk:~/go/bin# root@hk:~/go/bin#...

BUG should appear here when using mysql ``` // select Nvd from db nvd := models.Nvd{} r.conn.Model(&old).Related(&nvd, "Nvd") ```

Mysql's DATETIME conversion caused this problem Mysql does not seem to support DATE and TIME data types, must use the DATETIME type. Mysql does not seem to support the DATETIME...

When use sqlite nvd.LastModifiedDate.Equal(c.Nvd.LastModifiedDate) is Ture , but in mysql is False. ``` fetchnvd -dbtype mysql -dbpath root:passwd@(IP:3306)/cve?parseTime=true -debug-sql -modified -http-proxy http://127.0.0.1:1087 ``` ![image](https://user-images.githubusercontent.com/12231426/44071668-3d054518-9fbd-11e8-9cdd-5ce628bffa47.png)

use ---->> sudo easy_install PyInstaller done