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
"UPDATE " . $this->table . " SET amount = amount - ?, decimals = decimals - ? WHERE (xuid = ? OR username = ?) AND amount >= ? AND decimals >= ?"
Which will not allow subtracting decimals from a whole number balance. For example, if I had $10.00 and I wanted to take away $0.50, this query would fail because the decimals (00) is less than the amount of decimals I want to take (50).
The text was updated successfully, but these errors were encountered:
Currently the query looks like this:
Which will not allow subtracting decimals from a whole number balance. For example, if I had $10.00 and I wanted to take away $0.50, this query would fail because the decimals (00) is less than the amount of decimals I want to take (50).
The text was updated successfully, but these errors were encountered: