Skip to content

Commit 3b40ba2

Browse files
authored
Merge pull request hyrise#3 from cpakulski/drop-table
tablesAccess indicates that table was accessed for DROP DATABASE
2 parents b14d010 + 06ca23a commit 3b40ba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/sqlparser/DropStatement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace hsql {
2121
DropStatement(DropType type);
2222
virtual ~DropStatement();
2323
void tablesAccessed(TableAccessMap& accessMap) const override {
24-
if (name != nullptr) {
24+
if ((name != nullptr) && (type == kDropTable)) {
2525
TableAccess::addOperation(accessMap, name, schema, TableAccess::OpDrop);
2626
}
2727
};

0 commit comments

Comments
 (0)