Welcome Guest, Not a member yet? Register   Sign In
can we consider this fatal DB bug?
#15

[eluser]Fierymind[/eluser]
well, its not very stupid Smile but its unpredictable!

this part of the software handle payment feeds from different sources via different methods, good payment processors send IPN like Paypal, some old processors send information as series of arguments to URL, when payment received the controller save it to a table.

but what if there is refund or charge back? payment processor call same controller to search for the invoice entry and update it.

payment processor send his own ref number of the invoice, it can be string to number .. so my invoices model will search using what the payment processor sent to update the invoice.

software in production since a full year, have over 100k of invoices recorded until one day, a payment processor sent 0 instead of ref number of the invoice!!! and ALL 100k records now have same refund entry

so its very hard to predict this behavior and its very hard to assume that 0 in WHERE clause = ALL rows in table .. I can understand if WHERE in this case select no rows .. but select ALL rows!! wow this is really hard to understand.


Messages In This Thread
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 07:17 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 08:51 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 08:57 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 09:04 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 09:32 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 10:21 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 11:36 AM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 12:06 PM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 12:37 PM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 01:25 PM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 01:32 PM
can we consider this fatal DB bug? - by El Forum - 10-02-2010, 11:59 PM
can we consider this fatal DB bug? - by El Forum - 10-03-2010, 12:59 AM
can we consider this fatal DB bug? - by El Forum - 10-03-2010, 01:13 AM
can we consider this fatal DB bug? - by El Forum - 10-03-2010, 02:30 AM
can we consider this fatal DB bug? - by El Forum - 10-03-2010, 06:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB