Re: getSchemas() doesn't return a full list of schemas. Driver Bug
- From: Joe Weinstein <joeNOSPAM@xxxxxxx>
- Date: Fri, 02 Nov 2007 09:24:47 -0700
Joe Weinstein wrote:
Chris2912 wrote:
As I received no response from this forum, is there any suggestion where else I might get help for my problem?
I find that the driver is broken, but maybe not in the way you report.
GetSchema() is supposed to return a two-column resultset, with
TABLE_SCHEM String => schema name
TABLE_CATALOG String => catalog name (may be null)
I find the 1.2 driver's getSchema() call is doing this query:
select name from sysusers
This is only returning the first of the specified two columns.
I suggest the driver implement the getSchemas() call with:
select name 'TABLE_SCHEM', db_name() 'TABLE_CATALOG' from sysuser
Joe Weinstein at BEA Systems
I think you may be getting the wrong answer for one of two reasons:
1 - Is your current/default database context a database
that allows access to the schemas you want to see?
2 - Are you (or the driver) confusing schemas and users,
such as would be seen with a query "select name from syslogins"?
Joe Weinstein at BEA Systems
.
- References:
- Re: getSchemas() doesn't return a full list of schemas. Driver Bug
- From: Joe Weinstein
- Re: getSchemas() doesn't return a full list of schemas. Driver Bug
- Prev by Date: Re: getSchemas() doesn't return a full list of schemas. Driver Bug
- Next by Date: RE: Capturing Query Text of Prepared Statements in Profiler
- Previous by thread: Re: getSchemas() doesn't return a full list of schemas. Driver Bug
- Next by thread: RE: Capturing Query Text of Prepared Statements in Profiler
- Index(es):
Relevant Pages
|