Subject getDatabaseProductName() - question of curiousity
Author wegorkie
Hi,

I use a product which uses Jaybird and needs to run method
FBDatabaseMetaData.getDatabaseProductName().

Now, it fails because this method throws NullPointerException.

It throws the exception because it forwards the invocation through few
classes, finally calling the method (I suppose):
isc_db_handle_impl.getDatabaseProductName()
and this method is sth like this:

public String getDatabaseProductName(){
if (version.indexOf("Firebird") != -1)
return "Firebird";
else
return "Interbase";
}

where version seems to be null at object creation, so this causes an
exception.

Now, few questions:
- generally, what means GDS shortcut?
- am I able (as driver user) to init isc_db_handle_impl.version field
in any way so the methods above work correctly?
- or maybe it is a bug?

Maciek