Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-2561

Incorrect datatypes in ModeShape JDBC driver

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.1.0.ER4
    • Fix Version/s: 5.2.0 ER1
    • Component/s: EDS
    • Labels:
      None
    • Release Notes Text:
      Hide
      https://issues.jboss.org/browse/SOA-2561

      The Modeshape JBDC driver was reporting the wrong metadata for some of its columns: they were set as string, even when they were non-string types. A code fix has bbeen applied so that the correct metadata types are now set for these columns.
      Show
      https://issues.jboss.org/browse/SOA-2561 The Modeshape JBDC driver was reporting the wrong metadata for some of its columns: they were set as string, even when they were non-string types. A code fix has bbeen applied so that the correct metadata types are now set for these columns.
    • Release Notes Docs Status:
      Documented as Resolved Issue

      Description

      Since ER4 there are new columns returned by ModeShape JDBC driver jcr:path, jcr:name, jcr:score, mode:localName, mode:depth.

      When ModeShape.vdb is used then mode_depth is of type long and jcr_score of type double.
      10:01:25,904 INFO [STDOUT] jcr_name = of type java.lang.String, 12
      10:01:25,904 INFO [STDOUT] jcr_path = / of type java.lang.String, 12
      10:01:25,904 INFO [STDOUT] jcr_primaryType = mode:root of type java.lang.String, 12
      10:01:25,904 INFO [STDOUT] jcr_score = 1.0 of type java.lang.Double, 8
      10:01:25,904 INFO [STDOUT] mode_depth = 0 of type java.lang.Long, -5
      10:01:25,904 INFO [STDOUT] mode_localName = of type java.lang.String, 12

      But when plain ModeShape JDBC driver is used then all columns are of type String even of non-string values
      10:01:25,063 INFO [STDOUT] jcr:primaryType = mode:root of type java.lang.String, 12
      10:01:25,064 INFO [STDOUT] jcr:path = / of type java.lang.String, 12
      10:01:25,064 INFO [STDOUT] jcr:name = of type java.lang.String, 12
      10:01:25,064 INFO [STDOUT] jcr:score = 1.0 of type java.lang.String, 12
      10:01:25,064 INFO [STDOUT] mode:localName = of type java.lang.String, 12
      10:01:25,064 INFO [STDOUT] mode:depth = 0 of type java.lang.String, 12

      ModeShape JDBC driver should use sensible datatypes too.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  van.halbert Van Halbert
                  Reporter:
                  jpechanec Jiri Pechanec
                  Writer:
                  David Le Sage
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: