go-xorm / cmd

Command line tools for database operation written by Go, moved to https://gitea.com/xorm/cmd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SqlServer 中 Unknown colType UNIQUEIDENTIFIER

lixifun opened this issue · comments

xorm reverse mssql "sever=127.0.0.1;user id=sa;password=123;port=49783;database=WQMonData" templates\goxorm

2018/01/03 17:16:17 [Error] reverse.go:176 Unknown colType UNIQUEIDENTIFIER for WQ_Mon_T_VerifierInfo - id

SqlServer 中不识别 全局唯一标识符 (GUID)

Same here. Xorm reverse cannot recognize UNIQUEIDENTIFIER in mssql.

Any update?

@p581581 I'm not familiar with MSSQL. Maybe someone could send a PR to fix this? I think it's not difficult.

@lunny I simply add UniqueIdentifier type in core/types.go. Maybe it could fix this bug. See go-xorm/core#38