Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f282f4 commit ec3ae16Copy full SHA for ec3ae16
database/mssql/mssql.go
@@ -300,7 +300,7 @@ func (ss *MSSQL) Drop() error {
300
}
301
302
// drop the tables
303
- query = `EXEC sp_MSforeachtable 'DROP TABLE @p1'`
+ query = `EXEC sp_MSforeachtable 'DROP TABLE ?'`
304
if _, err := ss.conn.ExecContext(context.Background(), query); err != nil {
305
return &database.Error{OrigErr: err, Query: []byte(query)}
306
0 commit comments