Displaying 1 result from an estimated 1 matches for "f_year".
Did you mean:
t_year
2006 Jul 26
7
Delete_all causes a deadlock on MSSQL database ???
...== key[0,7]
pc,what = key[7,99].split ''_''
if '''' == reason
# delete this one
MissingEntriesReason.destroy_all \
"profit_centre_id = #{pc} AND which_month =
#{params[:month]} and which_year = ''#{params[:f_year]}'' and
what=''#{what}''"
# can''t use delete_all - this causes a deadlock in the
database !??!
else
# save this one
r =
MissingEntriesReason.find_or_create_by_profit_centre_id_and_which_month_and_which_year_and_what
\...