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

DatabaseMetaData.getTypeInfo() returns incorrect precision for VARCHAR FOR BIT DATA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 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.1.4
    • JDBC
    • None

    Description

      PRECISION column for VARCHAR FOR BIT DATA is returned as 32762, but maximum precision is 32672 (6 & 7 swapped).

      ij> create table z (a varchar(32672) for bit data);
      0 rows inserted/updated/deleted
      ij> create table z2(a varchar(32673) for bit data);
      ERROR 42611: The length, precision, or scale attribute for column, or type mapping 'VARCHAR (32673) FOR BIT DATA' is not valid.

      Attachments

        Issue Links

          Activity

            People

              sv204098 Saurabh Vyas
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: