Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5749

Implicit cast of variable length values, e.g. as arguments to stored methods and generated columns values, silently truncate if too long

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2, 10.8.2.2
    • Fix Version/s: 10.9.1.0
    • Component/s: JDBC, SQL
    • Issue & fix info:
      Release Note Needed
    • Bug behavior facts:
      Data corruption, Deviation from standard

      Description

      Cf the attached repro SilentVarcharArgTruncation.
      It seem implicit casts are inserted here, cf discussion on derby-dev thread starting here: http://mail-archives.apache.org/mod_mbox/db-derby-dev/201205.mbox/%3Cx67gwm7hir.fsf%40oracle.com%3E

        Attachments

        1. DERBY-5749.diff
          6 kB
          Dag H. Wanvik
        2. DERBY-5749.stat
          0.2 kB
          Dag H. Wanvik
        3. DERBY-5749-2.diff
          5 kB
          Dag H. Wanvik
        4. DERBY-5749-2.stat
          0.3 kB
          Dag H. Wanvik
        5. DERBY-5749-2b.diff
          5 kB
          Dag H. Wanvik
        6. DERBY-5749-2b.stat
          0.3 kB
          Dag H. Wanvik
        7. DERBY-5749b.diff
          14 kB
          Dag H. Wanvik
        8. DERBY-5749b.stat
          0.9 kB
          Dag H. Wanvik
        9. releaseNote.html
          8 kB
          Dag H. Wanvik
        10. releaseNote.html
          8 kB
          Knut Anders Hatlen
        11. releaseNote.html
          5 kB
          Dag H. Wanvik
        12. SilentVarcharArgTruncation.java
          2 kB
          Dag H. Wanvik
        13. SilentVarcharArgTruncation.java
          1 kB
          Dag H. Wanvik

          Issue Links

            Activity

              People

              • Assignee:
                dagw Dag H. Wanvik
                Reporter:
                dagw Dag H. Wanvik
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: