Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds AUTO_INCREMENT value while copying table. Fixes bug #4079 #675

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/Util.class.php
Expand Up @@ -2656,7 +2656,7 @@ public static function getCheckbox($html_field_name, $label, $checked, $onclick)
* @param boolean $escape_label whether to use htmlspecialchars() on label
* @param string $class enclose each choice with a div of this class
*
* @return string set of html radio fiels
* @return string set of html radio fields
*/
public static function getRadioFields(
$html_field_name, $choices, $checked_choice = '',
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/export/ExportSql.class.php
Expand Up @@ -1027,7 +1027,7 @@ public function getTableDef(
// in SHOW CREATE TABLE so we'll remove it below
// It's required for Drizzle because SHOW CREATE TABLE uses
// the value from table's creation time
if (isset($GLOBALS['sql_auto_increment'])
if (isset($_POST['sql_auto_increment'])
&& ! empty($tmpres['Auto_increment'])
) {
$auto_increment .= ' AUTO_INCREMENT='
Expand Down