Fix #11492, AUTO_INCREMENT statements are partly missing from exports
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
This commit is contained in:
parent
692c555c3f
commit
053edda33f
@ -8,6 +8,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue #11486 Server variable edition in ANSI_QUOTES sql_mode: losing current value
|
||||
- issue #11491 Propose table structure broken
|
||||
- issue #11464 phpMyAdmin suggests upgrading to newer version not usable on that system
|
||||
- issue #11492 AUTO_INCREMENT statements are partly missing from exports
|
||||
|
||||
4.5.0.0 (2015-09-23)
|
||||
+ rfe Pagination for GIS visualization
|
||||
|
||||
@ -1709,13 +1709,12 @@ class ExportSql extends ExportPlugin
|
||||
}
|
||||
|
||||
// Generating auto-increment-related query.
|
||||
if ((! empty($auto_increment))
|
||||
&& ($update_indexes_increments)
|
||||
&& ($statement->entityOptions->has('AUTO_INCREMENT') !== false)
|
||||
) {
|
||||
if ((! empty($auto_increment)) && ($update_indexes_increments)) {
|
||||
$sql_auto_increments_query = $alter_header . $crlf . ' MODIFY '
|
||||
. implode(',' . $crlf . ' MODIFY ', $auto_increment);
|
||||
if (isset($GLOBALS['sql_auto_increment'])) {
|
||||
if (isset($GLOBALS['sql_auto_increment'])
|
||||
&& ($statement->entityOptions->has('AUTO_INCREMENT') !== false)
|
||||
) {
|
||||
$sql_auto_increments_query .= ', AUTO_INCREMENT='
|
||||
. $statement->entityOptions->has('AUTO_INCREMENT');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user