Added uniqueidentifier and xml types (as string)
This commit is contained in:
parent
b1b0249898
commit
2e9535d56e
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,8 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
|
||||||
c.Type = "null.Bytes"
|
c.Type = "null.Bytes"
|
||||||
case "timestamp", "rowversion":
|
case "timestamp", "rowversion":
|
||||||
c.Type = "null.Bytes"
|
c.Type = "null.Bytes"
|
||||||
|
case "uniqueidentifier", "xml":
|
||||||
|
c.Type = "null.String"
|
||||||
default:
|
default:
|
||||||
c.Type = "null.String"
|
c.Type = "null.String"
|
||||||
}
|
}
|
||||||
|
@ -340,6 +342,8 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
|
||||||
c.Type = "[]byte"
|
c.Type = "[]byte"
|
||||||
case "timestamp", "rowversion":
|
case "timestamp", "rowversion":
|
||||||
c.Type = "[]byte"
|
c.Type = "[]byte"
|
||||||
|
case "uniqueidentifier", "xml":
|
||||||
|
c.Type = "null.String"
|
||||||
default:
|
default:
|
||||||
c.Type = "string"
|
c.Type = "string"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue