Subject | Re: [Firebird-Java] Re: FBDatabaseMetaData and underscores |
---|---|
Author | David Jencks |
Post date | 2002-06-05T16:15:49Z |
Looks like there is a genuine problem.
I wonder if the empty result sets are related to the recent change in
char(n) treatment from padding with spaces to padding with nulls? If the
system tables are padded with spaces they would not match a null-padded
string.
david jencks
I wonder if the empty result sets are related to the recent change in
char(n) treatment from padding with spaces to padding with nulls? If the
system tables are padded with spaces they would not match a null-padded
string.
david jencks
On 2002.06.05 11:31:18 -0400 llafranc78 wrote:
> I've done two or three tests, and here is the scenario:
>
> a) if tableName contains underscores and it's short enough, no
> Exception is thrown and I get the right ResultSet;
>
> b) if tableName contains underscores and it's long enough, the
> Exception is thrown;
>
> c) if tableName doesn't contain underscores there is no Exception but
> I get an empty ResultSet;
>
> So after escaping the underscores the Exception is gone, but ALL
> ResultSets are empty!
>
> Regards
> Luca
>
>
>
>
> > I believe my implementation is spec compliant. It would certainly be
> > simpler not to handle wildcards at all. Try escaping them like this:
> >
> > column\_name
> >
> > or if you a literal string
> >
> > "column\\_name"
> >
> > Then you shouldn't see the extra spaces or the LIKE used either.
> >
> > There are tests for this in jca/TestDataBaseMetaData.java
> >
> > david jencks
> >
> > On 2002.06.05 10:29:02 -0400 llafranc78 wrote:
>
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>