Update xorm to fix issue #5659 and #5651 (#5680)

This commit is contained in:
Zsombor 2019-01-09 23:18:06 +01:00 committed by techknowlogick
parent dd13327382
commit 31aa00fa4b
4 changed files with 11 additions and 6 deletions

View file

@ -822,7 +822,7 @@ func (db *postgres) SqlType(c *core.Column) string {
case core.NVarchar:
res = core.Varchar
case core.Uuid:
res = core.Uuid
return core.Uuid
case core.Blob, core.TinyBlob, core.MediumBlob, core.LongBlob:
return core.Bytea
case core.Double:
@ -834,6 +834,10 @@ func (db *postgres) SqlType(c *core.Column) string {
res = t
}
if strings.EqualFold(res, "bool") {
// for bool, we don't need length information
return res
}
hasLen1 := (c.Length > 0)
hasLen2 := (c.Length2 > 0)