diff --git a/necto_db_dev.db b/necto_db_dev.db index c221a10e1..55c3524d2 100644 Binary files a/necto_db_dev.db and b/necto_db_dev.db differ diff --git a/utils/databases/queries/Programmer.sql b/utils/databases/queries/Programmer.sql index c61559529..d42110846 100644 --- a/utils/databases/queries/Programmer.sql +++ b/utils/databases/queries/Programmer.sql @@ -1,6 +1,6 @@ SELECT *, - (uid) AS item_uid, + (uid) AS item_uid, (name) AS item_title FROM Programmers @@ -19,4 +19,14 @@ WHERE LIMIT 1 ) - ) AND (Programmers.installed = 1) AND (Programmers.name LIKE '%%1%') \ No newline at end of file + ) + AND Programmers.uid IN ( + SELECT + programmer_uid + FROM + CompilerToProgrammer + WHERE + compiler_uid = (SELECT uid FROM SelectedCompiler) + ) + AND Programmers.installed = 1 + AND Programmers.name LIKE '%%1%'