[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TINYINT type bug
- To: mckoidb@xxxxxxxxx
- Subject: TINYINT type bug
- From: "Robert Manning" <robert.m.manning@xxxxxxxxx>
- Date: Mon, 25 Dec 2006 05:53:22 -0500
- Delivered-To: mailing list mckoidb@mckoi.com
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Yv9DgSRJ6DkAPNJI+zqYBq1n+kYR5JS19Er/MAePI0wpbk0fnyZ+EohyW548fmcaQu9DlRdYRrNMnUxOSIYUpuRgJkTK8m0NJCei7/omj/9pPbuDw2KPW1vNqvJINzEfkDczaVSjaBhbQDsVXKNybTT9yeETFOZXuQIq6dSQcic=
- Mailing-List: contact mckoidb-help@mckoi.com; run by ezmlm
Hello,
I believe the following behavior to be a bug:
create table tinyint_test ( mycol tinyint );
insert into tinyint_test values (128);
select * from tinyint_test;
The select yields "-128" - looks like we overflowed storage; perhaps
using byte instead of short?
I believe the TINYINT type should handle an 8-bit integer value
between 0 and 255 (signed or unsigned)
Rob Manning
P.S. For your "Other software that supports Mckoi SQL" section, there is the
SQuirreL SQL Client (http://www.squirrelsql.org/index.php?page=faq#faq0)