Skip to content
  • Kailasnath Nagarkar's avatar
    da6d9270
    Bug #27068222: CREATE TABLE USING SELECT WITH UNION · da6d9270
    Kailasnath Nagarkar authored
                   FAILS FOR DATE COLUMN
    
    ISSUE: select with union is used in create table.
           In case of columns that cannot be null,
           0 is set as default value. For date columns,
           0000-00-00 is set as default value which is
           invalid when server is running in strict mode.
    
    SOLUTION: In strict mode, for create using select
              with union, for date columns, do not set
              the default value.
    da6d9270
    Bug #27068222: CREATE TABLE USING SELECT WITH UNION
    Kailasnath Nagarkar authored
                   FAILS FOR DATE COLUMN
    
    ISSUE: select with union is used in create table.
           In case of columns that cannot be null,
           0 is set as default value. For date columns,
           0000-00-00 is set as default value which is
           invalid when server is running in strict mode.
    
    SOLUTION: In strict mode, for create using select
              with union, for date columns, do not set
              the default value.
Loading