home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / mysql-test / t / bigint.test < prev    next >
Encoding:
Text File  |  2003-01-21  |  789 b   |  23 lines  |  [TEXT/ttxt]

  1. #
  2. # Test of reading of bigint values
  3. #
  4. select 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296;
  5. select 9223372036854775807,-009223372036854775808;
  6. select +9999999999999999999,-9999999999999999999;
  7.  
  8. #
  9. # In 3.23 we have to disable the test of column to bigint as
  10. # this fails on AIX powerpc (the resolution for double is not good enough)
  11. # This will work on 4.0 as we then have internal handling of bigint variables.
  12. #
  13.  
  14. drop table if exists t1;
  15. create table t1 (a bigint unsigned not null, primary key(a));
  16. insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE);
  17. select * from t1;
  18. select * from t1 where a=18446744073709551615;
  19. select * from t1 where a='18446744073709551615';
  20. delete from t1 where a=18446744073709551615;
  21. select * from t1;
  22. drop table t1;
  23.