Disallow subtraction on unsigned columns:
authorRoland Häder <roland@mxchange.org>
Sat, 30 Nov 2013 21:31:21 +0000 (21:31 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 30 Nov 2013 21:31:21 +0000 (21:31 +0000)
commit7770a9545292d628afd2be4f58f86da5c9139619
tree506650f456355b05ff197acdeada18505243c9e8
parent1e5953f6bfcadb2cbdaead2e516c4401078e620d
Disallow subtraction on unsigned columns:

When you use subtraction between integer values where one is of type
UNSIGNED, the result is unsigned unless the NO_UNSIGNED_SUBTRACTION SQL
mode is enabled. See Section 12.10, “Cast Functions and Operators”.
inc/db/lib-mysql3.php
inc/db/lib-mysqli.php