Skip to content

Commit

Permalink
mysql: typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuyesuifeng committed Oct 24, 2015
1 parent e4b6878 commit 4d777a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (t Time) RoundFrac(fsp int) (Time, error) {
return Time{Time: nt, Type: t.Type, Fsp: fsp}, nil
}

func parseDateFromat(format string) []string {
func parseDateFormat(format string) []string {
format = strings.TrimSpace(format)

start := 0
Expand Down Expand Up @@ -358,7 +358,7 @@ func parseDatetime(str string, fsp int) (Time, error) {
err error
)

seps := parseDateFromat(str)
seps := parseDateFormat(str)

switch len(seps) {
case 1:
Expand Down

0 comments on commit 4d777a8

Please sign in to comment.