<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="425916">
  <date_last_updated>2011-07-22 07:21:13.829532+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/425916</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~sergefp</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.2</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/425916/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/425916/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/425916</bug_web_link>
  <owner>Sergey Petrunia</owner>
  <assignee>Sergei</assignee>
  <milestone_title>Maria 5.2</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>CREATE TABLE with unsupported table option keeps the option</title>
  <status>New</status>
  <importance>Low</importance>
  <created>2009-09-07 20:19:00.180047+00:00</created>
  <description>
<![CDATA[CREATE TABLE will produce a warning when table's storage engine doesn't support transactional=0|1 attribute but won't produce warnings for page_checksum or row_format attributes. 

Moreover, the attributes will be kept (in .frm file?) and displayed by SHOW CREATE TABLE which creates an illusion that the storage engine actually supports them:

mysql> create table t1 (a int) transactional=0;
Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> create table t2 (a int) page_checksum=1;
Query OK, 0 rows affected (0.01 sec)

mysql> create table t3 (a int) row_format=page;
Query OK, 0 rows affected (0.01 sec)

mysql> show create table t3\G
*************************** 1. row ***************************
       Table: t3
Create Table: CREATE TABLE `t3` (
  `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE
1 row in set (0.00 sec)

mysql> show create table t2\G
*************************** 1. row ***************************
       Table: t2
Create Table: CREATE TABLE `t2` (
  `a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
1 row in set (0.00 sec)



Suggested fix:
- Discard unapplicable attributes
- And produce a warning when doing that.]]>  </description>
  <activities>
    <activity datechanged="2009-09-07T20:19:00.180047+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Sergey Petrunia</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2009-09-07T20:19:33.904748+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Confirmed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Sergey Petrunia</person>
      <message></message>
    </activity>
    <activity datechanged="2009-09-08T04:50:46.370448+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Oleksandr "Sanja" Byelkin (sanja-byelkin)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <message></message>
    </activity>
    <activity datechanged="2009-11-25T17:00:56.070064+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[Medium]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Hakan Küçükyılmaz</person>
      <message></message>
    </activity>
    <activity datechanged="2009-12-09T08:59:34.234877+00:00">
      <oldvalue>
<![CDATA[Confirmed]]>      </oldvalue>
      <newvalue>
<![CDATA[In Progress]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <message></message>
    </activity>
    <activity datechanged="2010-06-28T09:54:04.263342+00:00">
      <oldvalue>
<![CDATA[Medium]]>      </oldvalue>
      <newvalue>
<![CDATA[Low]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Sergei</person>
      <message></message>
    </activity>
    <activity datechanged="2010-07-27T13:27:14.455184+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[maria/5.2]]>      </newvalue>
      <whatchanged>nominated for series</whatchanged>
      <person>Sergei</person>
      <message></message>
    </activity>
    <activity datechanged="2010-07-27T13:27:14.455184+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[maria/5.2]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Sergei</person>
      <message></message>
    </activity>
    <activity datechanged="2010-11-30T16:08:50.635663+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.2]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Sergei</person>
      <message></message>
    </activity>
    <activity datechanged="2010-11-30T18:06:20.743381+00:00">
      <oldvalue>
<![CDATA[Oleksandr "Sanja" Byelkin (sanja-byelkin)]]>      </oldvalue>
      <newvalue>
<![CDATA[Sergei (sergii)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Sergei</person>
      <message></message>
    </activity>
    <activity datechanged="2011-02-25T15:12:58.378631+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Alexey Botchkov</person>
      <message>added subscriber Alexey Botchkov</message>
    </activity>
    <activity datechanged="2011-07-22T07:21:13.126547+00:00">
      <oldvalue>
<![CDATA[In Progress]]>      </oldvalue>
      <newvalue>
<![CDATA[New]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/425916/comments/1" datecreated="2009-09-08T04:50:46.370448+00:00">
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <subject>
<![CDATA[Re: CREATE TABLE with unsupported table option keeps the option]]>      </subject>
      <content>
<![CDATA[The behaviour can be changed/touched in https://askmonty.org/worklog/Server-BackLog/?tid=43]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/425916/comments/2" datecreated="2009-12-09T10:29:47.030573+00:00">
      <person>Oleksandr &quot;Sanja&quot; Byelkin</person>
      <subject>
<![CDATA[Re: CREATE TABLE with unsupported table option keeps the option]]>      </subject>
      <content>
<![CDATA[Storing attributes (even if they are not used) is correct behaviour. The bug is in absence of warning about unused attributes.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/425916/comments/3" datecreated="2010-05-26T22:14:59.335767+00:00">
      <person>Hakan Küçükyılmaz</person>
      <subject>
<![CDATA[Re: CREATE TABLE with unsupported table option keeps the option]]>      </subject>
      <content>
<![CDATA[Sanja,

do you have an update about this bug?

Thanks,

Hakan]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/425916/comments/4" datecreated="2010-05-27T07:24:46.271851+00:00">
      <person>Sergei</person>
      <subject>
<![CDATA[Re: CREATE TABLE with unsupported table option keeps the option]]>      </subject>
      <content>
<![CDATA[Additionally, the warning on TRANSACTIONAL uses an WARN_LEVEL_ERROR instead of WARN_LEVEL_WARN, as it should]]>      </content>
    </comment>
  </comments>
</launchpad-bug>
