Hi all,
I do have an SQL-query for SQLite that does run in DB Browser but does not succeed within code runner.
SELECT LehrerInnen.Kuerzel AS `Kürzel`,
unterrichtet.Stunden,
Klassen.Bezeichnung AS `Klasse` FROM Klassen
INNER JOIN unterrichtet ON Klassen_Bezeichnung = Klassen.Bezeichnung
INNER JOIN LehrerInnen ON Kuerzel = unterrichtet.LehrerInnen_Kuerzel
WHERE LehrerInnen.Kuerzel = "KR" and Klassen.Einschulungsjahr = "20/21"
Is answered by code runner with
***Laufzeitfehler***
Error: near line 6: table unterrichtet has no column named Kuerzel Traceback (most recent call last): File "__tester__.python3", line 42, in <module> output = subprocess.check_output(['sqlite3', db_working], input=text_input, File "/usr/lib/python3.8/subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['sqlite3', 'Beispiel']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "__tester__.python3", line 46, in <module> raise Exception("sqlite3 error: " + str(e)) Exception: sqlite3 error: Command '['sqlite3', 'Beispiel']' returned non-zero exit status 1.The database that does accept the above without complaints is attached.
Why does code runner crash? Can you spot that straight away?
Pls excuse the german.
Any hint is highly appreceated by
Chris