inspectorG4dget / AnonymousFeedback

1 stars 0 forks source link

pg8000.ProgrammingError raised when adding a course #36

Closed scriptbae closed 7 years ago

scriptbae commented 7 years ago

As a professor, adding a section, a pg8000.ProgrammingError (normally caused by bad syntax) is raised when adding a course. The origin of this error is an invocation of cursor.execute() at dbhandler.py:89 inside createCourse():

t.execute("""INSERT INTO course(code) VALUES (%s)""", (courseCode,))
cannotparse commented 7 years ago

If an error have been thrown from a prior test, then all executions will block. When executing without error, this runs fine. Closing.