From 05140e7d9cdce0151758f4ef1845568f3c7840da Mon Sep 17 00:00:00 2001 From: KtorZ Date: Mon, 23 Jan 2023 23:27:18 +0100 Subject: [PATCH] Include extra LEFT-JOIN in new sqlite's inspect output. --- test/Test/Kupo/Data/DatabaseSpec.hs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/Test/Kupo/Data/DatabaseSpec.hs b/test/Test/Kupo/Data/DatabaseSpec.hs index c597ea4b..53937863 100644 --- a/test/Test/Kupo/Data/DatabaseSpec.hs +++ b/test/Test/Kupo/Data/DatabaseSpec.hs @@ -377,7 +377,7 @@ spec = parallel $ do [ "SEARCH binary_data USING INDEX sqlite_autoindex_binary_data_1 (binary_data_hash=?)" , "LIST SUBQUERY 1" , "SCAN binary_data USING COVERING INDEX sqlite_autoindex_binary_data_1" - , "SEARCH inputs USING AUTOMATIC COVERING INDEX (datum_hash=?)" + , "SEARCH inputs USING AUTOMATIC COVERING INDEX (datum_hash=?) LEFT-JOIN" , "USE TEMP B-TREE FOR ORDER BY" ] ) @@ -464,7 +464,7 @@ spec = parallel $ do let suffix = [ "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" , "USE TEMP B-TREE FOR ORDER BY" ] @@ -857,7 +857,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] ) @@ -871,7 +871,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] ) @@ -885,7 +885,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] ) @@ -899,7 +899,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] ) @@ -913,7 +913,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] ) @@ -927,7 +927,7 @@ spec = parallel $ do (`shouldBe` [ "SEARCH inputs USING INDEX inputsByOutputReference (output_reference=?)" , "SEARCH createdAt USING INTEGER PRIMARY KEY (rowid=?)" - , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?)" + , "SEARCH spentAt USING INTEGER PRIMARY KEY (rowid=?) LEFT-JOIN" ] )