Fix time.Time matching to timestamp postgres type (reflection just gives "Time")
This commit is contained in:
parent
0a77813360
commit
2b46385126
@ -85,7 +85,7 @@ func getPostgresType(goType string) (string, error) {
|
||||
return "double precision", nil
|
||||
case "bool":
|
||||
return "boolean", nil
|
||||
case "time.Time":
|
||||
case "Time":
|
||||
return "timestamp", nil
|
||||
case "[]byte":
|
||||
return "bytea", nil
|
||||
|
Loading…
Reference in New Issue
Block a user