移除GenExistSQL不需要的tableName
This commit is contained in:
parent
0f6fb5409d
commit
43691c77d7
|
@ -314,8 +314,6 @@ func (statement *Statement) GenExistSQL(bean ...interface{}) (string, []interfac
|
|||
return statement.Limit(1).GenGetSQL(b)
|
||||
}
|
||||
|
||||
tableName = statement.quote(tableName)
|
||||
|
||||
buf := builder.NewWriter()
|
||||
if statement.dialect.URI().DBType == schemas.MSSQL {
|
||||
if _, err := fmt.Fprintf(buf, "SELECT TOP 1 *"); err != nil {
|
||||
|
|
Loading…
Reference in New Issue