Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-182

Getting FK relationships Causes Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1 [LEGACY]
    • Modeler
    • None
    • Sybase only?

    Description

      In BdLoader, loadDbRelationships,

      (line 460) ResultSet rs =
      getMetaData().getExportedKeys(
      pkEntity.getCatalog(),
      pkEntity.getSchema(),
      pkEntity.getName());

      will cause an exception to be thrown for (I think just) views. There are a couple of possible fixes – one can put a try/catch aroung the above statement and check the error for something other than "No such object or user exists in the database" (may be Sybase specific) or Skip all views or skip all tables with no primary keys. (Not sure which if any of these are good fixes.)

      Joe

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            jrmcdaniel Joe McDaniel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: