From 167433d40d7210066d5ec341bc19dbdf42b1a7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Bary=C5=82a?= Date: Thu, 3 Oct 2024 19:28:08 +0200 Subject: [PATCH] Compatibility with macOS 15 --- Sources/PerfectSQLite/SQLite.swift | 1 + Sources/PerfectSQLite/SQLiteCRUD.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/PerfectSQLite/SQLite.swift b/Sources/PerfectSQLite/SQLite.swift index 31d3b51..5f99dff 100644 --- a/Sources/PerfectSQLite/SQLite.swift +++ b/Sources/PerfectSQLite/SQLite.swift @@ -23,6 +23,7 @@ import PerfectCSQLite3 import SwiftGlibc #else import SQLite3 +import Darwin #endif /// This enum type indicates an exception when dealing with a SQLite database diff --git a/Sources/PerfectSQLite/SQLiteCRUD.swift b/Sources/PerfectSQLite/SQLiteCRUD.swift index 66ab5e0..128b425 100644 --- a/Sources/PerfectSQLite/SQLiteCRUD.swift +++ b/Sources/PerfectSQLite/SQLiteCRUD.swift @@ -346,7 +346,7 @@ class SQLiteGenDelegate: SQLGenDelegate { } return "\(name) \(typeName)\(addendum)" } - func getBinding(for expr: Expression) throws -> String { + func getBinding(for expr: CRUDExpression) throws -> String { bindings.append(("?", expr)) return "?" }