Skip to content

HCK-14785: RE relationships#90

Merged
chulanovskyi-bs merged 1 commit intodevelopfrom
fix/HCK-14785-re-relationships
Feb 12, 2026
Merged

HCK-14785: RE relationships#90
chulanovskyi-bs merged 1 commit intodevelopfrom
fix/HCK-14785-re-relationships

Conversation

@chulanovskyi-bs
Copy link
Contributor

@chulanovskyi-bs chulanovskyi-bs commented Feb 12, 2026

Sub-bugHCK-14785 [DB2][RE from instance] relationships aren't REed from instance if schema name length is less than 8

Content:

  • normalized schema names in DDL statements on RE.

Technical details

  • The PR fixes the behavior of CALL SYSPROC.DB2LK_GENERATE_DDL, where the schema names are right padded by default. For examples:
    • schema name in the model is x
    • after applying it to the instance, trying to reverse it back as DDL will return:
-- "x"."t" definition

CREATE TABLE "x       "."t"  (
		  "c1" VARCHAR(20 OCTETS) )   
		 IN "IBMDB2SAMPLEREL"  
		 ORGANIZE BY ROW;
  • This happens because the schema name was created as a fixed-length CHAR value (default 8) and is blank-padded internally to full length.
  • This impacts the internal resolution of references on most levels (relationships, types, columns, views, etc.)

@sonarqubecloud
Copy link

@chulanovskyi-bs chulanovskyi-bs enabled auto-merge (squash) February 12, 2026 14:56
@chulanovskyi-bs chulanovskyi-bs merged commit 063cf4b into develop Feb 12, 2026
9 checks passed
@chulanovskyi-bs chulanovskyi-bs deleted the fix/HCK-14785-re-relationships branch February 12, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants