<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="869104">
  <date_last_updated>2012-03-22 00:53:11.795382+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/869104</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~knielsen</bug_owner_link>
    <milestone_link></milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/869104/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/869104/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/869104</bug_web_link>
  <owner>Kristian Nielsen</owner>
  <assignee></assignee>
  <milestone_title></milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>CREATE TABLE ... SELECT can result in column type &quot;null&quot;</title>
  <status>New</status>
  <importance>Undecided</importance>
  <created>2011-10-06 12:01:27.179498+00:00</created>
  <description>
<![CDATA[CREATE TABLE t1 ENGINE = INNODB AS SELECT IF(NULL  IS NOT NULL, NULL, NULL);
SHOW CREATE TABLE t1;

Create Table: CREATE TABLE `t1` (
  `IF(NULL  IS NOT NULL, NULL, NULL)` null DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1

Note the column type "null". This is not valid in CREATE TABLE, so for example
a mysqldump including such a table will not be able to re-create the table.

This is MySQL bug#54394: http://bugs.mysql.com/bug.php?id=54394]]>  </description>
  <activities>
    <activity datechanged="2011-10-06T12:01:27.179498+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Kristian Nielsen</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-03-22T00:53:11.433189+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[upstream]]>      </newvalue>
      <whatchanged>tags</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
  </activities>
</launchpad-bug>
