Skip to content

Commit

Permalink
make the default time format of mysql8 with nano second
Browse files Browse the repository at this point in the history
  • Loading branch information
XIELongDragon committed May 29, 2022
1 parent ed26566 commit c25530b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dialect/mysql/mysql.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package mysql

import (
"time"

"github.com/doug-martin/goqu/v9"
"github.com/doug-martin/goqu/v9/exp"
)
Expand Down Expand Up @@ -84,6 +86,7 @@ func DialectOptions() *goqu.SQLDialectOptions {
func DialectOptionsV8() *goqu.SQLDialectOptions {
opts := DialectOptions()
opts.SupportsWindowFunction = true
opts.TimeFormat = time.RFC3339Nano
return opts
}

Expand Down

0 comments on commit c25530b

Please sign in to comment.