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

The = and <> operators should be supported on CLOBs.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.9.1.0
    • None
    • SQL
    • Normal
    • Repro attached
    • Deviation from standard

    Description

      According to the 2008 SQL Standard, part 2, section 4.2.1, the = and <> operators should be supported when comparing CLOBs. The following script shows this defect:

      connect 'jdbc:derby:memory:db;create=true';

      create table t( a clob, b clob );

      select * from t where a = b;
      select * from t where a <> b;

      A partial workaround would be to cast the CLOBs as VARCHAR( 32672 ). This would work for small CLOBs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: