Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6053

Cannot retrieve database metadata for Sybase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.6, 3.0 M4
    • Fix Version/s: 3.0 RC1
    • Component/s: Data
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thomas.risberg Thomas Risberg
              Reporter:
              balaji Balaji Varanasi
              Last updater:
              Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 40 weeks, 2 days ago