go-xorm / cmd

Command line tools for database operation written by Go, moved to https://gitea.com/xorm/cmd
BSD 3-Clause "New" or "Revised" License
168 stars 77 forks source link

SqlServer 中 Unknown colType UNIQUEIDENTIFIER #27

Open lixifun opened 6 years ago

lixifun commented 6 years ago

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)

p581581 commented 6 years ago

Same here. Xorm reverse cannot recognize UNIQUEIDENTIFIER in mssql.

p581581 commented 6 years ago

Any update?

lunny commented 6 years ago

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

p581581 commented 6 years ago

@lunny I simply add UniqueIdentifier type in core/types.go. Maybe it could fix this bug. See https://github.com/go-xorm/core/pull/38