Skip to content

fix(gbase8s): colon-separate database in getMetaDataName and guard GBASEDBTSERVER URL append - #2292

Open
HandSonic wants to merge 1 commit into
OtterMind:mainfrom
HandSonic:fix/review-gbase8s
Open

fix(gbase8s): colon-separate database in getMetaDataName and guard GBASEDBTSERVER URL append#2292
HandSonic wants to merge 1 commit into
OtterMind:mainfrom
HandSonic:fix/review-gbase8s

Conversation

@HandSonic

@HandSonic HandSonic commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem

Two GBase 8s (Informix-lineage) issues:

  1. GBase8sMetaData.getMetaDataName qualified names with a dot (database.table). GBase 8s parses a.b as owner.table in the current database, so database-qualified references resolved against the wrong object. Database qualification requires the Informix-style colon separator (db:table, db:owner.table).
  2. GBase8sDBManager.getConnection appended ":GBASEDBTSERVER=<service>" to the shared ConnectInfo URL on every connect, so each reconnect added another segment and the JDBC URL grew without bound.

Fix

  • getMetaDataName: emit database:table for 2-part names and database:owner.table for 3-part names
  • getConnection: append GBASEDBTSERVER= only when not already present (idempotent)

Tests

New GBase8sMetaDataTest (colon qualification) and GBase8sDBManagerTest (idempotent URL). mvn test on chat2db-community-gbase8s: 6/6 pass.


Verified on fork HandSonic#12 (meaningful CI checks green; dependency-review/project-sync jobs are fork-permission noise). Regression tests pass; adversarial review cleared.

…ASEDBTSERVER URL append (code review follow-up)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants