Commit f9f4825a authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1405

show auto inc value on 'show create table'

git-svn-id: file:///svn/mysql/tokudb-engine/src@10023 c7de825b-a66e-492c-adef-691d508d4ae1
parent a0f84bd0
...@@ -3915,6 +3915,15 @@ cleanup: ...@@ -3915,6 +3915,15 @@ cleanup:
return error; return error;
} }
void ha_tokudb::update_create_info(HA_CREATE_INFO* create_info) {
if (share->has_auto_inc) {
info(HA_STATUS_AUTO);
create_info->auto_increment_value = stats.auto_increment_value;
}
}
// //
// Creates a new table // Creates a new table
// Parameters: // Parameters:
......
...@@ -291,6 +291,7 @@ public: ...@@ -291,6 +291,7 @@ public:
int open(const char *name, int mode, uint test_if_locked); int open(const char *name, int mode, uint test_if_locked);
int close(void); int close(void);
void update_create_info(HA_CREATE_INFO* create_info);
int create(const char *name, TABLE * form, HA_CREATE_INFO * create_info); int create(const char *name, TABLE * form, HA_CREATE_INFO * create_info);
int delete_table(const char *name); int delete_table(const char *name);
int rename_table(const char *from, const char *to); int rename_table(const char *from, const char *to);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment