go-admin icon indicating copy to clipboard operation
go-admin copied to clipboard

[BUG] query columns error

Open ijidan opened this issue 3 years ago • 1 comments

table name : group query statement : show columns IN group error description: image related code : sql.diver.QueryWithConnection(sql.conn, sql.dialect.ShowColumns(sql.TableName)) how to fix : sql.diver.QueryWithConnection(sql.conn,sql.dialect.ShowColumns("@"+sql.TableName+"@")) replace @ with `

ijidan avatar Jan 27 '22 08:01 ijidan

group是关键字,需要变更所有的ShowColumns方法,给表名加上``

danvinhe avatar Feb 22 '22 03:02 danvinhe