移除GenExistSQL不需要的tableName

This commit is contained in:
hsfish 2025-02-19 20:40:30 +08:00
parent 0f6fb5409d
commit 43691c77d7
1 changed files with 0 additions and 2 deletions

View File

@ -314,8 +314,6 @@ func (statement *Statement) GenExistSQL(bean ...interface{}) (string, []interfac
return statement.Limit(1).GenGetSQL(b) return statement.Limit(1).GenGetSQL(b)
} }
tableName = statement.quote(tableName)
buf := builder.NewWriter() buf := builder.NewWriter()
if statement.dialect.URI().DBType == schemas.MSSQL { if statement.dialect.URI().DBType == schemas.MSSQL {
if _, err := fmt.Fprintf(buf, "SELECT TOP 1 *"); err != nil { if _, err := fmt.Fprintf(buf, "SELECT TOP 1 *"); err != nil {