Skip to content

Commit 11561dd

Browse files
authored
Loosen up limits
1 parent eec600c commit 11561dd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/webmacro_extension.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,8 @@ static std::pair<bool, std::string> ContainsDangerousCommands(const std::string
114114
const std::vector<std::string> dangerous_commands = {
115115
"DELETE", "DROP", "TRUNCATE", "ALTER", "GRANT", "REVOKE",
116116
"CREATE USER", "ALTER USER", "DROP USER",
117-
"CREATE DATABASE", "DROP DATABASE",
118-
"EXEC", "EXECUTE",
119-
"SHUTDOWN", "RESTART",
120-
"SET GLOBAL", "SET SYSTEM",
121-
"LOAD EXTENSION", "UNLOAD EXTENSION",
122-
"ATTACH", "DETACH",
123-
"COPY", "EXPORT",
124-
"UPDATE", "MERGE"
117+
"DROP DATABASE", "EXEC", "EXECUTE",
118+
"SHUTDOWN", "RESTART", "DETACH"
125119
};
126120

127121
std::string upper_sql = StringUtil::Upper(sql);

0 commit comments

Comments
 (0)