-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db_sqlite.tryInsertID does raise exceptions in 1.6.0 #3
Comments
ringabout
referenced
this issue
in ringabout/Nim
Apr 24, 2022
Varriount
referenced
this issue
in nim-lang/Nim
Apr 24, 2022
The regression of the db_sqlite is already fixed. But db_* modules is highly likely to move out of the stds. Fixing the bug of db_postgres is not high priority. |
ringabout
referenced
this issue
in nim-lang/Nim
Dec 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code compiles with nim 1.4.8:
This code stopped compiling in 1.6.0 and later because it raises now
DbError
:The odbc tryInsertId and mysql tryInsertId versions still maintain their well ment
raises: []
pragma. The postgres and sqlite seem to have grown unexpected exceptions.The sqlite module gained the API breaking change in this commit while work was being done to fix nim-lang/Nim#18669, which wasn't related to the
tryInsertID
proc. I haven't found any discussions in the forums or github issues about thistryInsertID
API breakage. Given that othertryInsertID
procs still raise no exceptions in their definitions, and atry*
method ideally should keep its meaning and raise no unsuspected exceptions, this feels like a bug in bothdb_sqlite
anddb_postgres
.The text was updated successfully, but these errors were encountered: