summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2021-10-04 22:31:05 +1100
committerDaniel Black <daniel@mariadb.org>2021-10-04 22:31:18 +1100
commit32839c4df237bd64807e4e92a1fabe14eb6df783 (patch)
tree7d3a437544d6883d29aedb70ab6271da3243caf1
parent98a7fa0ce792408e964ea00cdc571197a513f217 (diff)
downloadmariadb-git-32839c4df237bd64807e4e92a1fabe14eb6df783.tar.gz
MDEV-19867: postfix - syntax spelling ALTER TABLE
Fixes: 5c5ea59bf88bc7cd9774f48e847168b47de7b249
-rw-r--r--client/mysqldump.c2
-rw-r--r--mysql-test/suite/s3/mysqldump.result2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 2aec9265921..c546a44cb70 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -4407,7 +4407,7 @@ static void dump_table(const char *table, const char *db, const uchar *hash_key,
if (!opt_xml && opt_copy_s3_tables && (ignore_flag & IGNORE_S3_TABLE))
{
DYNAMIC_STRING alter_string;
- init_dynamic_string_checked(&alter_string, "ATER TABLE ", 1024, 1024);
+ init_dynamic_string_checked(&alter_string, "ALTER TABLE ", 1024, 1024);
dynstr_append_checked(&alter_string, opt_quoted_table);
dynstr_append_checked(&alter_string, " ENGINE=S3;\n");
fputs(alter_string.str, md_result_file);
diff --git a/mysql-test/suite/s3/mysqldump.result b/mysql-test/suite/s3/mysqldump.result
index 995cbf5bc63..947fdc20506 100644
--- a/mysql-test/suite/s3/mysqldump.result
+++ b/mysql-test/suite/s3/mysqldump.result
@@ -24,7 +24,7 @@ CREATE TABLE `t1` (
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `t1` VALUES (1,1),(2,2),(3,3),(4,4);
-ATER TABLE `t1` ENGINE=S3;
+ALTER TABLE `t1` ENGINE=S3;
#####
# mysqldump with --copy-s3-tables=1 XML
###