Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 6a1dd59

Browse files
starudreamBetaCat0
authored andcommitted
add quote within the table name (#1285)
1 parent ce804ae commit 6a1dd59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

session_exist.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ func (session *Session) Exist(bean ...interface{}) (bool, error) {
3434
return false, ErrTableNotFound
3535
}
3636

37+
tableName = session.statement.Engine.Quote(tableName)
38+
3739
if session.statement.cond.IsValid() {
3840
condSQL, condArgs, err := builder.ToSQL(session.statement.cond)
3941
if err != nil {

0 commit comments

Comments
 (0)