forked from takisd123/executequery
-
Notifications
You must be signed in to change notification settings - Fork 22
META_TYPES[DDL_TRIGGER] doesn't exist in old FB servers #11
Comments
What do you expect to get in this case? FB servers before 3 don't have DDL triggers. |
For now I just did as you can see below. Original code gives me a null
pointer exception when using FB 2.5 and trying to just open an *table
trigger*.
if (Objects.equals(type, META_TYPES[TRIGGER])) {
List<NamedObject> dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
}
pt., 9 sie 2024 o 15:21 Roman Simakov ***@***.***> napisał(a):
… What do you expect to get in this case? FB servers before 3 don't have DDL
triggers.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJCU675JPCN7QAFA3WK33CLZQS66HAVCNFSM6AAAAABMINGX42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXHEZTIMBRHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ah, you mean Null Pointer Exception when said null. Ok. It's definitely a bug. Thanks. |
sorry, there was a copy-past error. I mean:
if (Objects.equals(type, META_TYPES[TRIGGER])) {
List<NamedObject> dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DDL_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
}
pt., 9 sie 2024 o 15:53 Tomasz Makowski ***@***.***> napisał(a):
… For now I just did as you can see below. Original code gives me a null
pointer exception when using FB 2.5 and trying to just open an *table
trigger*.
if (Objects.equals(type, META_TYPES[TRIGGER])) {
List<NamedObject> dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
dbo =
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DATABASE_TRIGGER]);
if (dbo != null)
databaseObjects.addAll(dbo);
}
pt., 9 sie 2024 o 15:21 Roman Simakov ***@***.***>
napisał(a):
> What do you expect to get in this case? FB servers before 3 don't have
> DDL triggers.
>
> —
> Reply to this email directly, view it on GitHub
> <#11 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AJCU675JPCN7QAFA3WK33CLZQS66HAVCNFSM6AAAAABMINGX42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXHEZTIMBRHA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
fixed in 2024.09 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There is a problem in SQLUtils.java. Function generateNameForDBObject assume all FB databases have DDL_TRIGGER.
For old firebirds (I believe <3) this gives null:
databaseHost.getDatabaseObjectsForMetaTag(META_TYPES[DDL_TRIGGER])
The text was updated successfully, but these errors were encountered: