xelabs / go-mydumper

A multi-threaded MySQL backup and restore tool, faster than mysqldump
GNU General Public License v3.0
346 stars 100 forks source link

[bug] myloader issue when importing tables with dash #14

Closed kfi closed 5 years ago

kfi commented 5 years ago

2019/03/07 14:47:51.787967 loader.go:87: [INFO] working.table[mydb.m2epro_amazon_listing_product_backup_2015-05-11] 2019/03/07 14:47:51.788896 loader.go:102: [INFO] drop(overwrite.is.true).table[mydb.m2epro_amazon_listing_product_backup_2015-05-11] panic: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-05-11' at line 1 (errno 1064) (sqlstate 42000)

BohuTANG commented 5 years ago

Hi @kfi

Thanks for your reporting. This bug fixed cd048b97be027433533f1e20401d90c8a52a6e65

Please git pull master again and rebuild.

kfi commented 5 years ago

works great, thank you