You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using impl_update and updating some column to null, and that column currently has some value in database, then impl_update simply ignores this value.
so it is not possible to do this with impl_update:
update TABLE1 set COLUMN1='test', COLUMN2=NULL where ID=10
The problem is in this line
#[$crate::py_sql("update ${table_name} set
trim ',':
for k,v in table:
if k == column || v== null:
continue:
${k}=#{v},
",$sql_where)]
Please provide an option to update all columns to impl_update macro or provide another macro that does this or a macro that receives whole update statement.
The text was updated successfully, but these errors were encountered:
If using impl_update and updating some column to null, and that column currently has some value in database, then impl_update simply ignores this value.
so it is not possible to do this with impl_update:
update TABLE1 set COLUMN1='test', COLUMN2=NULL where ID=10
The problem is in this line
Please provide an option to update all columns to impl_update macro or provide another macro that does this or a macro that receives whole update statement.
The text was updated successfully, but these errors were encountered: