Skip to content

Commit 6231147

Browse files
committed
fix: avoid ABI crash by not reading supportsColumnReorder from dynamic plugins
1 parent 3f99a78 commit 6231147

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

Plugins/MySQLDriverPlugin/MySQLPlugin.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ final class MySQLPlugin: NSObject, TableProPlugin, DriverPlugin {
2727

2828
// MARK: - UI/Capability Metadata
2929

30-
static let supportsColumnReorder = true
3130
static let urlSchemes: [String] = ["mysql"]
3231
static let brandColorHex = "#FF9500"
3332
static let systemDatabaseNames: [String] = ["information_schema", "mysql", "performance_schema", "sys"]

Plugins/TableProPluginKit/DriverPlugin.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public protocol DriverPlugin: TableProPlugin {
5454
static var isDownloadable: Bool { get }
5555
static var postConnectActions: [PostConnectAction] { get }
5656
static var parameterStyle: ParameterStyle { get }
57-
static var supportsColumnReorder: Bool { get }
5857
}
5958

6059
public extension DriverPlugin {
@@ -115,5 +114,4 @@ public extension DriverPlugin {
115114
static var parameterStyle: ParameterStyle { .questionMark }
116115
static var isDownloadable: Bool { false }
117116
static var postConnectActions: [PostConnectAction] { [] }
118-
static var supportsColumnReorder: Bool { false }
119117
}

TablePro/Core/Plugins/PluginMetadataRegistry.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ final class PluginMetadataRegistry: @unchecked Sendable {
642642
editorLanguage: driverType.editorLanguage,
643643
connectionMode: driverType.connectionMode,
644644
supportsDatabaseSwitching: driverType.supportsDatabaseSwitching,
645-
supportsColumnReorder: driverType.supportsColumnReorder,
645+
supportsColumnReorder: false,
646646
capabilities: PluginMetadataSnapshot.CapabilityFlags(
647647
supportsSchemaSwitching: driverType.supportsSchemaSwitching,
648648
supportsImport: driverType.supportsImport,

0 commit comments

Comments
 (0)