Skip to content

Commit

Permalink
Remove reduced test case now that issue has been reported to the SQLi…
Browse files Browse the repository at this point in the history
…te mailing list
  • Loading branch information
groue committed Aug 1, 2019
1 parent 3973c11 commit 5bdc61e
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions Tests/GRDBTests/DatabaseCursorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,44 +133,4 @@ class DatabaseCursorTests: GRDBTestCase {
}
}
}

#warning("TODO: remove this test when issue has been reported to SQLite mailing list")
// func testIssue583_reduced() throws {
// if #available(OSX 10.14, *) {
// var connection: SQLiteConnection? = nil
// sqlite3_open_v2(":memory:", &connection, SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX, nil)
// sqlite3_extended_result_codes(connection, 1)
//
// sqlite3_exec(connection, """
// CREATE TABLE user (username TEXT NOT NULL);
// CREATE TABLE flagUser (username TEXT NOT NULL);
// INSERT INTO flagUser (username) VALUES ('User1');
// INSERT INTO flagUser (username) VALUES ('User2');
// """, nil, nil, nil)
//
// var statement: SQLiteStatement? = nil
// sqlite3_set_authorizer(connection, { (_, _, _, _, _, _) in SQLITE_OK }, nil)
// sqlite3_prepare_v3(connection, """
// SELECT * FROM flagUser WHERE (SELECT COUNT(*) FROM user WHERE username = flagUser.username) = 0
// """, -1, 0, &statement, nil)
// sqlite3_set_authorizer(connection, nil, nil)
// while true {
// let code = sqlite3_step(statement)
// if code == SQLITE_DONE {
// break
// } else if code == SQLITE_ROW {
// // part of the compilation of another statement, here
// // reduced to the strict minimum that reproduces
// // the error.
// sqlite3_set_authorizer(connection, nil, nil)
// } else {
// print(String(cString: sqlite3_errmsg(connection)))
// XCTFail("Error \(code)")
// break
// }
// }
// sqlite3_finalize(statement)
// sqlite3_close_v2(connection)
// }
// }
}

0 comments on commit 5bdc61e

Please sign in to comment.