(d *model.DatabaseMetadata, node *tidbast.TableToTable)
| 209 | } |
| 210 | |
| 211 | func tidbTheCurrentDatabase(d *model.DatabaseMetadata, node *tidbast.TableToTable) bool { |
| 212 | if node.NewTable.Schema.O != "" && !isCurrentDatabase(d, node.NewTable.Schema.O) { |
| 213 | return false |
| 214 | } |
| 215 | if node.OldTable.Schema.O != "" && !isCurrentDatabase(d, node.OldTable.Schema.O) { |
| 216 | return false |
| 217 | } |
| 218 | return true |
| 219 | } |
| 220 | |
| 221 | func tidbDropDatabase(d *model.DatabaseMetadata, node *tidbast.DropDatabaseStmt) *storepb.Advice { |
| 222 | if !isCurrentDatabase(d, node.Name.O) { |
no test coverage detected