Skip to content

Commit

Permalink
Restrict renaming of objects with upper case in name to base tables
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Dec 19, 2024
1 parent a500163 commit 8ecd7f5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ BEGIN
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_TYPE = 'BASE TABLE'
AND BINARY TABLE_NAME != LOWER(TABLE_NAME);

DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
Expand Down

0 comments on commit 8ecd7f5

Please sign in to comment.