Skip to content

Commit f297110

Browse files
committed
Added .from statement to SELECT query in MySQLTests.testSaveJSON test case
1 parent d06f10d commit f297110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/MySQLTests/MySQLTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class MySQLTests: XCTestCase {
203203
.run().wait()
204204

205205
try client.insert(into: Nested.self).value(Nested(id: 1, data: ["description": "JSON data"])).run().wait()
206-
let nested = try client.select().all(table: Nested.self).first(decoding: Nested.self).wait()
206+
let nested = try client.select().all().from(Nested.self).first(decoding: Nested.self).wait()
207207

208208
XCTAssertEqual(nested?.id, 1)
209209
XCTAssertEqual(nested?.data, ["description": "JSON data"])

0 commit comments

Comments
 (0)