Skip to content

Commit 04b4803

Browse files
committed
Added Equatable to cellvalue
1 parent d7e7237 commit 04b4803

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/SQLClientSwift/SQLDataTable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public struct SQLDataColumn: Codable, Sendable {
4242
// MARK: - Cell Value
4343

4444
/// A strongly-typed, Codable cell value preserving the original Swift type.
45-
public enum SQLCellValue: Codable, Sendable {
45+
public enum SQLCellValue: Codable, Sendable, Equatable {
4646
case null
4747
case string(String)
4848
case int16(Int16)

Tests/SQLClientSwiftTests/SQLClientSwiftTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ final class SQLClientSwiftTests: XCTestCase {
456456
// Use a temp table with a named result via a stored proc isn't feasible here,
457457
// so we verify that name-based lookup works via asSQLDataSet with a named table.
458458
let result = try await client.execute("SELECT 42 AS Val")
459-
var ds = result.asSQLDataSet()
459+
let ds = result.asSQLDataSet()
460460
// The first table has no name by convention; rename via re-init for test purposes.
461461
// Instead, test that subscript by non-existent name returns nil gracefully.
462462
XCTAssertNil(ds["NonExistent"])

0 commit comments

Comments
 (0)