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
|
return "double precision", nil
|
||||||
case "bool":
|
case "bool":
|
||||||
return "boolean", nil
|
return "boolean", nil
|
||||||
case "time.Time":
|
case "Time":
|
||||||
return "timestamp", nil
|
return "timestamp", nil
|
||||||
case "[]byte":
|
case "[]byte":
|
||||||
return "bytea", nil
|
return "bytea", nil
|
||||||
|
Loading…
Reference in New Issue
Block a user