DropTableSql 并没有使用Quote函数获得引号 #427

Closed
opened 2016-07-21 03:01:02 +00:00 by hzmnet · 1 comment
hzmnet commented 2016-07-21 03:01:02 +00:00 (Migrated from github.com)

func (db *Base) DropTableSql(tableName string) string {
return fmt.Sprintf("DROP TABLE IF EXISTS %s", tableName)
}

某些数据库只支持双引号比如Pg

func (db *Base) DropTableSql(tableName string) string { return fmt.Sprintf("DROP TABLE IF EXISTS `%s`", tableName) } 某些数据库只支持双引号比如Pg

The quote ` will be replace to dialect SQL quote characters. I will close this issue. Please feel free to reopen it if you have any further information.

The quote \` will be replace to dialect SQL quote characters. I will close this issue. Please feel free to reopen it if you have any further information.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#427
No description provided.