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

You can create BOOLEAN columns in 10.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • SQL
    • None

    Description

      The work on DERBY-64 seems to have opened up a wormhole by which you can create user tables with BOOLEAN columns. The following script shows how to do this:

      drop table foo;

      create table foo
      as select systemalias from sys.sysaliases with no data;
      rename column foo.systemalias to boolcol;
      alter table foo
      alter column boolcol null;

      select c.columndatatype
      from sys.syscolumns c, sys.systables t
      where t.tableid=c.referenceid
      and t.tablename='FOO';

      insert into foo( boolcol )
      values
      ( 0 ),
      ( 1 ),
      ( cast (null as int) )
      ;

      select * from foo;

      Attachments

        1. d2605_v1.patch
          8 kB
          James F. Adams
        2. d2605_v1.stat
          0.3 kB
          James F. Adams
        3. d2605_inc_v1.patch
          4 kB
          A B
        4. d2605_v2.patch
          7 kB
          James F. Adams
        5. d2605_v2.stat
          0.3 kB
          James F. Adams

        Issue Links

          Activity

            People

              james.f.adams James F. Adams
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: