Skip to content

META_TYPES[DDL_TRIGGER] doesn't exist in old FB servers #11

Closed
madmak2005 opened this issue Aug 9, 2024 · 5 comments
Closed

META_TYPES[DDL_TRIGGER] doesn't exist in old FB servers #11

madmak2005 opened this issue Aug 9, 2024 · 5 comments
Assignees

Comments

@madmak2005
Copy link

There is a problem in SQLUtils.java. Function generateNameForDBObject assume all FB databases have DDL_TRIGGER.

if (Objects.equals(type, META_TYPES[TRIGGER])) {
            databaseObjects.addAll(databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]));
            databaseObjects.addAll(databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DDL_TRIGGER]));
}

For old firebirds (I believe <3) this gives null:
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DDL_TRIGGER])

@romansimakov
Copy link

What do you expect to get in this case? FB servers before 3 don't have DDL triggers.

@madmak2005
Copy link
Author

madmak2005 commented Aug 9, 2024 via email

@romansimakov
Copy link

Ah, you mean Null Pointer Exception when said null. Ok. It's definitely a bug. Thanks.

@madmak2005
Copy link
Author

madmak2005 commented Aug 9, 2024 via email

@mikhan808
Copy link

fixed in 2024.09

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants