mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
fix auto-increment in sub-key and insert ... select
This commit is contained in:
parent
e0ba590fc9
commit
6a933b2e08
6 changed files with 26 additions and 6 deletions
|
|
@ -304,7 +304,7 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
|
|||
if (keydef->flag & HA_BINARY_PACK_KEY)
|
||||
options|=HA_OPTION_PACK_KEYS; /* Using packed keys */
|
||||
|
||||
if (keydef->flag & HA_AUTO_KEY)
|
||||
if (keydef->flag & HA_AUTO_KEY && ci->with_auto_increment)
|
||||
share.base.auto_key=i+1;
|
||||
for (j=0, keyseg=keydef->seg ; j < keydef->keysegs ; j++, keyseg++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue