Derby
  1. Derby
  2. DERBY-2507

Query compiler assumes bad parameter type for ? is null expression

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2.2.0
    • Fix Version/s: None
    • Component/s: JDBC
    • Urgency:
      Normal
    • Bug behavior facts:
      Embedded/Client difference

      Description

      When using '? is null' in a prepared Statement, the compiler assumes ? as VARCHAR parameter, and thus fails if you bind a VARBINARY object to the parameter:
      org.apache.derby.impl.jdbc.EmbedSQLException: An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'VARBINARY'

      In Derby 10.2..2.0, only the embededded driver has the problem, the client driver works properly.

      See this thread for more details:
      http://mail-archive.com/derby-user%40db.apache.org/msg06503.html

        Issue Links

          Activity

          Hide
          Marcin Cinik added a comment -

          reproducible in 10.10.1.1 embeeded as well

          Show
          Marcin Cinik added a comment - reproducible in 10.10.1.1 embeeded as well
          Hide
          Rick Hillegas added a comment -

          Triaged for 10.5.2: assigned normal urgency, reclassified as JDBC and embedded/client difference.

          Show
          Rick Hillegas added a comment - Triaged for 10.5.2: assigned normal urgency, reclassified as JDBC and embedded/client difference.

            People

            • Assignee:
              Unassigned
              Reporter:
              Xavier Hanin
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development