diff --git a/Package.swift b/Package.swift index d9004b3..25d1c87 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:4.0 +// swift-tools-version:4.2 // Package.swift // Perfect-MySQL // @@ -31,7 +31,7 @@ let package = Package( .library(name: "PerfectMySQL", targets: ["PerfectMySQL"]) ], dependencies: [ - .package(url: "https://github.com/PerfectlySoft/Perfect-CRUD.git", from: "1.2.2"), + .package(url: "https://github.com/PerfectlySoft/Perfect-CRUD.git", from: "1.2.3"), .package(url: "https://github.com/PerfectlySoft/\(clientPackage).git", from: "2.0.0"), ], targets: [ diff --git a/Sources/PerfectMySQL/MySQLCRUD.swift b/Sources/PerfectMySQL/MySQLCRUD.swift index 1f1af56..72804d9 100644 --- a/Sources/PerfectMySQL/MySQLCRUD.swift +++ b/Sources/PerfectMySQL/MySQLCRUD.swift @@ -511,7 +511,7 @@ public struct MySQLDatabaseConfiguration: DatabaseConfigurationProtocol { } public func sqlExeDelegate(forSQL: String) throws -> SQLExeDelegate { - let noPrepCommands = ["CREATE", "DROP", "ALTER", "BEGIN", "COMMIT", "ROLLBACK"] + let noPrepCommands = ["CREATE", "DROP", "ALTER", "BEGIN", "COMMIT", "ROLLBACK", "LOCK", "UNLOCK"] if nil != noPrepCommands.first(where: { forSQL.hasPrefix($0) }) { return MySQLDirectExeDelegate(connection: connection, sql: forSQL) }