[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Apply type processing to untyped preexec default cl
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-03-30 19:15:36
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/4eb4010c1a1c/ Changeset: 4eb4010c1a1c Branch: master User: zzzeek Date: 2017-03-30 18:58:50+00:00 Summary: Apply type processing to untyped preexec default clause Fixed bug where a SQL-oriented Python-side column default could fail to be executed properly upon INSERT in the "pre-execute" codepath, if the SQL itself were an untyped expression, such as plain text. The "pre- execute" codepath is fairly uncommon however can apply to non-integer primary key columns with SQL defaults when RETURNING is not used. Tests exist here to ensure typing is applied to a typed expression for default, but in the case of an untyped SQL value, we know the type from the column, so apply this. Change-Id: I5d8b391611c137b9f700115a50a2bf5b30abfe94 Fixes: #3923 Affected #: 5 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |