Skip to content

Commit

Permalink
Fixed the importing error (#34)
Browse files Browse the repository at this point in the history
* Update version

* Update version

* Fixed the bug that when occurred in import

* Update version
  • Loading branch information
hatajoe authored Jan 13, 2018
1 parent 41a56b0 commit 2950d33
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
## 0.5.1 (2018-01-09)
## 0.5.3 (2018-01-13)

### Added

- Nothing

### Deprecated

- Nothing

### Removed

- Nothing

### Fixed

- Fixed the importing bug that when column contains 0 value at the beginning of the string


## 0.5.2 (2018-01-09)

### Added

Expand Down
4 changes: 4 additions & 0 deletions cmd/carpenter/command/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func parseCSV(tableName, filename string) (columnNames []string, seeds mysql.See
v = nil
} else if v, err = strconv.ParseFloat(r, 64); err != nil {
v = r
} else {
if len(string(r)) > 1 && string(string(r)[0]) == "0" {
v = string(r)
}
}
columnData = append(columnData, v)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/carpenter/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

const Name string = "carpenter"
const Version string = "0.5.2"
const Version string = "0.5.3"

0 comments on commit 2950d33

Please sign in to comment.