Incorrect parameters for connect method
A content ERROR was logged by "Jonas Betzendahl" at the following url:
https://courses.voll-ki.fau.de/course-notes/iwgs-2?inDocPath=-t49qk3.-9fy7k9%7Ecdc3fa51
The issue as described by the user:
[I was alerted to this by a student]
This section gives four parameters to the sqlite3.connect() method (host, user, pass, DBname), when that's nowhere near the parameters that that function actually expects.
https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
I'm assuming someone copied this over from a different database connector like MySQL and didn't check it also applied to SQLite.
The text highlighted while reporting this issue:
sqlite3.connect(〈〈host〉〉,〈〈user〉〉,〈〈pass〉〉,〈〈DBname〉〉)
The selected text was in the following section hierarchy:
INNERMOST SECTION FIRST
-
GitLab: https://gl.mathhub.info/courses/FAU/IWGS/course/-/blob/main/source/databases/slides/python-sqlite.en.tex
FetchURL: https://stexmmt.mathhub.info//:sTeX/fulldocument?archive=courses/FAU/IWGS/course&filepath=databases/slides/python-sqlite.en.xhtml&bindings=1_0_MaMm3k -
GitLab: https://gl.mathhub.info/courses/FAU/IWGS/course/-/blob/main/source/databases/sec/python.en.tex
FetchURL: https://stexmmt.mathhub.info//:sTeX/fulldocument?archive=courses/FAU/IWGS/course&filepath=databases/sec/python.en.xhtml&bindings=1_0_30FLSs -
GitLab: https://gl.mathhub.info/courses/FAU/IWGS/course/-/blob/main/source/databases/sec/databases.en.tex
FetchURL: https://stexmmt.mathhub.info//:sTeX/fulldocument?archive=courses/FAU/IWGS/course&filepath=databases/sec/databases.en.xhtml&bindings=1_0_2E -
GitLab: https://gl.mathhub.info/courses/FAU/IWGS/course/-/blob/main/source/course/notes/notes-part2.tex
FetchURL: https://stexmmt.mathhub.info//:sTeX/fulldocument?archive=courses/FAU/IWGS/course&filepath=course/notes/notes-part2.xhtml