]> git.mxchange.org Git - mailer.git/blobdiff - inc/db/lib-mysql3.php
Some more improvements:
[mailer.git] / inc / db / lib-mysql3.php
index 24fb6e42c869ecb996f84d3904c7ec0d76591213..fd86300e36f564c9617c005197002a3a793df0bd 100644 (file)
@@ -231,6 +231,9 @@ function sqlConnectToDatabase ($host, $login, $password, $file, $line) {
        `character_set_connection`='utf8',
        `character_set_database`='utf8',
        `character_set_server`='utf8'", $file . ':' . __FUNCTION__, $line . ':' . __LINE__);
+
+               // Disallow subtraction for unsigned columns
+               sqlQuery("SET `sql_mode`='NO_UNSIGNED_SUBTRACTION'", $file . ':' . __FUNCTION__, $line . ':' . __LINE__);
        } // END - if
 
        // Return the resource