We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7240955 commit d827119Copy full SHA for d827119
src/cs50/sql.py
@@ -353,7 +353,7 @@ def teardown_appcontext(exception):
353
354
# If INSERT, return primary key value for a newly inserted row (or None if none)
355
elif command == "INSERT":
356
- if self._engine.url.get_backend_name() in ["postgres", "postgresql"]:
+ if self._engine.url.get_backend_name() == "postgresql":
357
try:
358
result = connection.execute("SELECT LASTVAL()")
359
ret = result.first()[0]
0 commit comments