Skip to content

Commit

Permalink
Updated DatabaseManager
Browse files Browse the repository at this point in the history
Removed IF NOT EXISTS for temporary table as it gave unintended results in unit tests.
  • Loading branch information
roaraf committed Mar 5, 2026
1 parent cf33cfa commit cf0dde8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ INSERT INTO charities (org_number, name, status, url, is_pre_approved)


// Temporary table for parity check
sql_query = "CREATE TEMPORARY TABLE IF NOT EXISTS temp (org_number VARCHAR(100) PRIMARY KEY)";
sql_query = "CREATE TEMPORARY TABLE temp (org_number VARCHAR(100) PRIMARY KEY)";
try (PreparedStatement temp_create = conn.prepareStatement(sql_query)) {
temp_create.execute();
}
Expand Down

0 comments on commit cf0dde8

Please sign in to comment.