Troubleshooting
Problem
After upgrade database from v9.5 to v9.7, it's not possible to rename table where index exists while table created in v9.7 could be renamed. A rename fails with SQL0750N.
Symptom
This is a scenario that causes the issue:
create database testdb;
connect to testdb;
create table t1 (ID INTEGER, DESC VARGRAPHIC(100) NOT NULL, DESCU VARGRAPHIC(100) NOT NULL GENERATED ALWAYS AS (UCASE(DESC)) PRIMARY KEY);
rename t1 to t2;
--command above will generate SQL0750N under v9.5 and will not generate error under v9.7
connect reset;
--under v9.5
backup database testdb;
--under v9.7
restore database testdb;
rename t1 to t2;
--command above will generate SQL0750N for v9.5 upgraded to v9.7
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
30 April 2025
UID
swg21445314