| Bug #110824 | checkForServerUpgrade doesn't catch "intersect" as reserved word | ||
|---|---|---|---|
| Submitted: | 26 Apr 2023 22:18 | Modified: | 14 Aug 2023 15:33 | 
| Reporter: | Soumya K | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Shell Upgrade Checker | Severity: | S2 (Serious) | 
| Version: | 8.0.31, 8.0.33 | OS: | Ubuntu | 
| Assigned to: | CPU Architecture: | Any | |
   [26 Apr 2023 22:18]
   Soumya K        
  
 
   [27 Apr 2023 6:33]
   MySQL Verification Team        
  Hello Soumya, Thank you for the report and feedback. regards, Umesh
   [9 May 2023 20:35]
   Soumya K        
  Found out today that Upgradechecker reporting "full" as reserved when documentation doesn't record it as one https://dev.mysql.com/doc/mysqld-version-reference/en/keywords-8-0.html To repeat: 1). Create table with column name "full" mysql> create table full_test (full varchar(10)); Query OK, 0 rows affected (0.05 sec) 2). Install mysql-shell 8.0.33 ii mysql-shell:amd64 8.0.33-1ubuntu18.04 amd64 MySQL Shell (part of MySQL Server) 8.0 3). Run checkForServerUpgrade using: mysqlsh -- util checkForServerUpgrade --user=<user> --socket=<socket> --password=<password> --configPath=/path/to/mycnf --target-version=8.0.31 Output looks like: The MySQL server at /path/to/sock, version 5.7.29-32-log - Source distribution, will now be checked for compatibility issues for upgrade to MySQL 8.0.31... 1) Usage of old temporal type No issues found 2) MySQL 8.0 syntax check for routine-like objects No issues found 3) Usage of db objects with names conflicting with new reserved keywords Warning: The following objects have names that conflict with new reserved keywords. Ensure queries sent by your applications use `quotes` when referring to them or they will result in errors. More information: https://dev.mysql.com/doc/refman/en/keywords.html db_name.full_test.full - Column name <SNIP>
   [14 Aug 2023 15:33]
   Edward Gilmore        
  Posted by developer: Added the following note to the MySQL Shell 8.2.0 release notes: The utility, checkForServerUpgrade did not recognize intersect as a reserved word. intersect was reserved in MySQL Server 8.0.31.
   [4 Sep 2023 7:18]
   Edward Gilmore        
  Posted by developer: Updated existing bug to include 8.0.35 version: Added the following note to the MySQL Shell 8.0.25 and 8.2.0 release notes: The utility, checkForServerUpgrade did not recognize intersect as a reserved word. intersect was reserved in MySQL Server 8.0.31.

