List:Commits« Previous MessageNext Message »
From:jani Date:May 4 2006 12:17pm
Subject:bk commit into 4.1 tree (jani:1.2476)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of jani. When jani does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2476 06/05/04 13:17:16 jani@stripped +1 -0
  Merge jamppa@stripped:/home/bk/mysql-4.1
  into  hundin.mysql.fi:/home/jani/mysql-4.1

  sql/sql_show.cc
    1.208 06/05/04 13:17:05 jani@stripped +0 -0
    Auto merged

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jani
# Host:	hundin.mysql.fi
# Root:	/home/jani/mysql-4.1/RESYNC

--- 1.207/sql/sql_show.cc	2006-04-30 16:01:30 +03:00
+++ 1.208/sql/sql_show.cc	2006-05-04 13:17:05 +03:00
@@ -1479,6 +1479,24 @@
       packet->append(" ENGINE=", 8);
     packet->append(file->table_type());
     
+    /*
+      Add AUTO_INCREMENT=... if there is an AUTO_INCREMENT column,
+      and NEXT_ID > 1 (the default).  We must not print the clause
+      for engines that do not support this as it would break the
+      import of dumps, but as of this writing, the test for whether
+      AUTO_INCREMENT columns are allowed and wether AUTO_INCREMENT=...
+      is supported is identical, !(file->table_flags() & HA_NO_AUTO_INCREMENT))
+      Because of that, we do not explicitly test for the feature,
+      but may extrapolate its existence from that of an AUTO_INCREMENT column.
+    */
+
+    if(create_info.auto_increment_value > 1)
+    {
+      packet->append(" AUTO_INCREMENT=", 16);
+      end= longlong10_to_str(create_info.auto_increment_value, buff,10);
+      packet->append(buff, (uint) (end - buff));
+    }
+    
     if (table->table_charset &&
 	!(thd->variables.sql_mode & MODE_MYSQL323) &&
 	!(thd->variables.sql_mode & MODE_MYSQL40))
Thread
bk commit into 4.1 tree (jani:1.2476)jani4 May