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"
|
||||
case "timestamp", "rowversion":
|
||||
c.Type = "null.Bytes"
|
||||
case "uniqueidentifier", "xml":
|
||||
c.Type = "null.String"
|
||||
default:
|
||||
c.Type = "null.String"
|
||||
}
|
||||
|
@ -340,6 +342,8 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
|
|||
c.Type = "[]byte"
|
||||
case "timestamp", "rowversion":
|
||||
c.Type = "[]byte"
|
||||
case "uniqueidentifier", "xml":
|
||||
c.Type = "null.String"
|
||||
default:
|
||||
c.Type = "string"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue