List:Internals« Previous MessageNext Message »
From:Kathryn Steinbrink Date:October 23 2007 4:09am
Subject:SHOW CREATE TABLE and auto_increment
View as plain text  
Hello.
It is documented in the MySQL 5.1 Reference that the SHOW CREATE TABLE
statement can be used to show the statement syntax that was used to create
the specified table.  For the auto_increment table option, the value that
is returned is the 'next value' that will be generated for the
auto_increment column.  Offhand, this seems wrong.  I would have expected
the original auto_increment= value to be displayed that was indeed
specified on the original CREATE TABLE (or ALTER TABLE) statement.  Can you
please comment?

 If a storage engine has access to the original value, is it okay to return
the original value instead of the 'next value'?  (If not, why not?)

Thanks for your help!


Kathy Steinbrink
Dept 45X - DB2 for i5/OS
IBM Rochester: 015-3 B201
507-253-5545

Thread
SHOW CREATE TABLE and auto_incrementKathryn Steinbrink23 Oct
  • Re: SHOW CREATE TABLE and auto_incrementStewart Smith23 Oct
    • RE: SHOW CREATE TABLE and auto_incrementRick James26 Oct
      • RE: SHOW CREATE TABLE and auto_incrementStewart Smith2 Nov
        • RE: SHOW CREATE TABLE and auto_incrementRick James2 Nov
          • Re: SHOW CREATE TABLE and auto_incrementJeremy Cole3 Nov
            • RE: SHOW CREATE TABLE and auto_incrementRick James5 Nov
              • Re: SHOW CREATE TABLE and auto_incrementJeremy Cole5 Nov