Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot retrieve database metadata for Sybase [SPR-6053] #10722

Closed
spring-projects-issues opened this issue Aug 29, 2009 · 2 comments
Closed

Cannot retrieve database metadata for Sybase [SPR-6053] #10722

spring-projects-issues opened this issue Aug 29, 2009 · 2 comments
Labels
in: data type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Aug 29, 2009

Balaji Varanasi opened SPR-6053 and commented

When executing a Sybase stored procedure using SimpleJdbcCall class, the database metadata is not being loaded. The logs show the following messages:

org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - SQL Server is not one of the databases fully supported for procedure calls -- supported are: [Apache Derby, DB2, MySQL, Microsoft SQL Server, Oracle, Sybase]
org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - Metadata processing disabled - you must specify all parameters explicitly
org.springframework.jdbc.core.metadata.CallMetaDataProviderFactory - Using org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider

After little research, I found that our Sybase database is named "SQL Server" and the commonDatabaseName method in JdbcUtils being used to get the database name compares against the string "sql server".

This problem gets fixed if the comparison with "sql server" is done without considering the case.


Affects: 2.5.6, 3.0 M4

Attachments:

Issue Links:

Referenced from: commits ea674f2, b482d6d

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Sep 3, 2009

Thomas Risberg commented

I'm making this change. Haven't been able to get your specific variant during testing. What db and driver version are you using?

-Thomas

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Sep 4, 2009

Balaji Varanasi commented

I am using the BEA's Sybase Driver (Type 4) Versions:11.x, 12.x that comes with Weblogic 10.3. The driver class name is: weblogic.jdbc.sybase.SybaseDriver

And here is the db information I got from DBA: Adaptive Server Enterprise/15.0.2/EBF 15961 ESD#6/P/RS6000/AIX 5.2/ase1502/2537/64-bit/FBO/Thu Oct 2 00:22:14 2008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data type: bug
Projects
None yet
Development

No branches or pull requests

1 participant