]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1898161: fix utf8-conversion on MySQL 8 (#193)
authorDave Miller <justdave@bugzilla.org>
Sun, 30 Jun 2024 02:16:28 +0000 (22:16 -0400)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2024 02:16:28 +0000 (22:16 -0400)
Bugzilla/DB/MariaDB.pm
Bugzilla/DB/Mysql.pm

index 29cfe4033ea0b7b46f32eb0820143b3159689a51..b600e84d217aa9b152e8f30218b7d1f866c42fc3 100644 (file)
@@ -725,7 +725,7 @@ sub bz_setup_database {
     print
       "Converting table storage format to $charset (collate $collate). This may take a while.\n";
     foreach my $table ($self->bz_table_list_real) {
-      my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM $table");
+      my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM " . $self->quote_identifier($table));
       $info_sth->execute();
       my (@binary_sql, @utf8_sql);
       while (my $column = $info_sth->fetchrow_hashref) {
index e6422389c2501fa239bfcdc3a7f69e4ff0b3f983..96a64ee8031a3439c98001cf542bc4a2f32bb798 100644 (file)
@@ -725,7 +725,7 @@ sub bz_setup_database {
     print
       "Converting table storage format to $charset (collate $collate). This may take a while.\n";
     foreach my $table ($self->bz_table_list_real) {
-      my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM $table");
+      my $info_sth = $self->prepare("SHOW FULL COLUMNS FROM " . $self->quote_identifier($table));
       $info_sth->execute();
       my (@binary_sql, @utf8_sql);
       while (my $column = $info_sth->fetchrow_hashref) {