From 246c3c489b2897f3a1e2a591697b452b86fb23d2 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 30 May 2025 13:28:28 +0200 Subject: [PATCH] MySQL 5.0-: Do not load partitioning info in alter table (fix #1099) --- CHANGELOG.md | 1 + adminer/create.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5e10186..31948b9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Adminer dev - Allow specifying operator in search anywhere +- MySQL 5.0-: Do not load partitioning info in alter table (bug #1099) - PostgreSQL 11-: Avoid duplicate oid in table status (bug #1089) - Plugins: Methods processList() and killProcess() diff --git a/adminer/create.inc.php b/adminer/create.inc.php index c5ccc40a..4d7a9c80 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -3,7 +3,7 @@ namespace Adminer; $TABLE = $_GET["create"]; $partition_by = driver()->partitionBy; -$partitions_info = driver()->partitionsInfo($TABLE); +$partitions_info = ($partition_by ? driver()->partitionsInfo($TABLE) : array()); $referencable_primary = referencable_primary($TABLE); $foreign_keys = array();