<div>Hi,</div>  <div>&nbsp;</div>  <div>I found a bug on 32 bit as well.</div>  <div>&nbsp;</div>  <div>create table SPS (<BR>S91 TINYINT UNSIGNED NOT NULL DEFAULT 0<BR>);<BR><BR>INSERT INTO SPS (S91) VALUES<BR>(222);<BR><BR>SELECT S91,S91-1,S91-222,S91-223 FROM SPS;<BR><BR>The result is:<BR>"1";"222";"221";"0";"A really big number"</div>  <div>&nbsp;</div>  <div>it should be:</div>  <div>"1";"222";"221";"0";"-1"</div>  <div>&nbsp;</div>  <div>Best Regards,</div>  <div>Eduard<BR><BR><BR><B><I>Eduard Boer &lt;eduard_boer@yahoo.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,<BR><BR>I have found a bug. I can reproduce it.<BR><BR>create table SPS (<BR>ID CHAR(32) NOT NULL UNIQUE PRIMARY KEY,<BR>S91 TINYINT UNSIGNED NOT NULL DEFAULT 0<BR>);<BR><BR>INSERT INTO SPS (ID,S91) VALUES<BR>('4f2271284f2271284f2271284f227128',222);<BR><BR>SELECT S91,S91-1,S91-222,POW(S91-223,2) FROM SPS
 WHERE<BR>ID='4f2271284f2271284f2271284f227128';<BR><BR>The result is:<BR>"1";"222";"221";"0";"A really big number"<BR><BR>On my 32 bit machine the result is:<BR>"1";"222";"221";"0";"1"<BR><BR>This is different!<BR><BR>System information:<BR>Linux Q6600 Quad core 8Gbyte Memory 2.6.23-1-amd64<BR>#1<BR>SMP Fri Dec 21 12:00:17 UTC 2007 x86_64 GNU/Linux<BR><BR>Debian testing, with the kernel from SID<BR>$ apt-cache show mysql-server<BR>Package: mysql-server<BR>Priority: optional<BR>Section: misc<BR>Installed-Size: 60<BR>Maintainer: Debian MySQL Maintainers<BR><PKG-MYSQL-MAINT@LISTS.ALIOTH.DEBIAN.ORG><BR>Architecture: all<BR>Source: mysql-dfsg-5.0<BR>Version: 5.0.45-5<BR>Depends: mysql-server-5.0<BR>Filename:<BR>pool/main/m/mysql-dfsg-5.0/mysql-server_5.0.45-5_all.deb<BR>Size: 50318<BR>MD5sum: 2b9d29775ce84dd5a3726857774d33d8<BR>SHA1: 46e88182f140508bd297ff43cc0d50dd0f4acf2c<BR><BR>Best
 Regards,<BR>Eduard<BR><BR><BR>____________________________________________________________________________________<BR>Looking for last minute shopping deals? <BR>Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping<BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping"> 
Find them fast with Yahoo! Search.</a>