Subject | Re: [IB-Java] Re: getXXX(colname) doesn't work with calculated columns and aliases |
---|---|
Author | Dietrich Schulten |
Post date | 2001-05-21T20:55:50Z |
Hi Fred,
ft@... schrieb:
getXXX(name). I wouldn't go as far as calling a driver non-compliant
because of such a problem.
the outside, while the JDBC Driver maps this to ordinal numbers
internally?
Dietrich
ft@... schrieb:
> The above will work with any JDBC complient driver. If a driver doesWell, then Interclient isn't JDBC compliant, for the same holds true for
> not return all the ResultSet values with getXXXX(index), it
> is not JDBC complient.
getXXX(name). I wouldn't go as far as calling a driver non-compliant
because of such a problem.
> > A JDBC driver must guarantee that findColumn(colname) always worksFor getXXX(colname) it would be the only way, at least I see no other.
> Depends what "colname" is. If it's the name of the column in the
> table, it must. If it's a user-defined column I agree that it should
> (interclient doesn't and could be improved though I'm not sure it is
> required by the JDBC spec). Certainly, the driver should not add
> anything to the method arguments. Whether it should
> interpret "colname" values in the "tablename.label" format instead of
> returning a null depends on whether this is allowed by the spec and
> if (and how) other JDBC implementations use it.
> It's a good idea to follow the crowd, so to speak, to make theSo would you be against something like column4 as column name seen from
> product useful to more people. However, inventing column labels where
> there was none is not part of JDBC or SQL and cannot serve a useful
> purpose.
the outside, while the JDBC Driver maps this to ordinal numbers
internally?
Dietrich