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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 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
    • 10.9.1.0
    • JDBC, SQL
    • Release Note Needed
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: