[Sqlalchemy-tickets] Issue #3666: Insert of multiple values that contain an unknown column don't tr
Brought to you by:
zzzeek
From: Athena Y. <iss...@bi...> - 2016-03-02 19:10:48
|
New issue 3666: Insert of multiple values that contain an unknown column don't trigger an exception https://bitbucket.org/zzzeek/sqlalchemy/issues/3666/insert-of-multiple-values-that-contain-an Athena Yao: Inserting just one value triggers the CompileError 'Unconsumed column names' just fine. Will provide patch shortly. Test case attached. Before fix: $ python2 unknown_columns.py Expected fail (single value): CompileError('Unconsumed column names: unknown_column',) Traceback (most recent call last): File "unknown_columns.py", line 30, in <module> raise RuntimeError("(multiple values): shouldn't hit here") RuntimeError: (multiple values): shouldn't hit here After fix: $ python2 unknown_columns.py Expected fail (single value): CompileError('Unconsumed column names: unknown_column',) Expected fail (multiple values): CompileError('Unconsumed column names: unknown_column',) |