Then it attempts to update the row in the line items table with id 2 in order to set the tax of the line item to the amount multiplied by the tax rate.
Now, in most cases this will work fine.