3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
11 # This file implements regression tests for SQLite library.
13 # This file implements tests for miscellanous features that were
14 # left out of other test files.
16 # $Id: misc5.test,v 1.22 2008/07/29 10:26:45 danielk1977 Exp $
18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl
21 # Build records using the MakeRecord opcode such that the size of the
22 # header is at the transition point in the size of a varint.
24 # This test causes an assertion failure or a buffer overrun in version
27 for {set i 120} {$i<140} {incr i} {
29 catchsql {DROP TABLE t1}
30 set sql1 {CREATE TABLE t1}
31 set sql2 {INSERT INTO t1 VALUES}
33 for {set j 0} {$j<$i} {incr j} {
44 # Make sure large integers are stored correctly.
49 create table t2(x unique);
50 insert into t2 values(1);
51 insert or ignore into t2 select x*2 from t2;
52 insert or ignore into t2 select x*4 from t2;
53 insert or ignore into t2 select x*16 from t2;
54 insert or ignore into t2 select x*256 from t2;
55 insert or ignore into t2 select x*65536 from t2;
56 insert or ignore into t2 select x*2147483648 from t2;
57 insert or ignore into t2 select x-1 from t2;
58 insert or ignore into t2 select x+1 from t2;
59 insert or ignore into t2 select -x from t2;
60 select count(*) from t2;
67 create table t2(x unique);
68 create table t2_temp(x);
69 insert into t2_temp values(1);
70 insert into t2_temp select x*2 from t2_temp;
71 insert into t2_temp select x*4 from t2_temp;
72 insert into t2_temp select x*16 from t2_temp;
73 insert into t2_temp select x*256 from t2_temp;
74 insert into t2_temp select x*65536 from t2_temp;
75 insert into t2_temp select x*2147483648 from t2_temp;
76 insert into t2_temp select x-1 from t2_temp;
77 insert into t2_temp select x+1 from t2_temp;
78 insert into t2_temp select -x from t2_temp;
79 INSERT INTO t2 SELECT DISTINCT(x) FROM t2_temp;
82 select count(*) from t2;
88 select x from t2 order by x;
91 "-4611686018427387905\
463 # Ticket #1210. Do proper reference counting of Table structures
464 # so that deeply nested SELECT statements can be flattened correctly.
469 CREATE TABLE songs(songid, artist, timesplayed);
470 INSERT INTO songs VALUES(1,'one',1);
471 INSERT INTO songs VALUES(2,'one',2);
472 INSERT INTO songs VALUES(3,'two',3);
473 INSERT INTO songs VALUES(4,'three',5);
474 INSERT INTO songs VALUES(5,'one',7);
475 INSERT INTO songs VALUES(6,'two',11);
476 SELECT DISTINCT artist
478 SELECT DISTINCT artist
483 WHERE LOWER(artist) = (
484 -- This sub-query is indeterminate. Because there is no ORDER BY,
485 -- it may return 'one', 'two' or 'three'. Because of this, the
486 -- outermost parent query may correctly return any of 'one', 'two'
487 -- or 'three' as well.
488 SELECT DISTINCT LOWER(artist)
490 -- This sub-query returns the table:
496 SELECT DISTINCT artist,sum(timesplayed) AS total
498 GROUP BY LOWER(artist)
506 ORDER BY LOWER(artist) ASC;
511 # Ticket #1370. Do not overwrite small files (less than 1024 bytes)
512 # when trying to open them as a database.
514 if {[permutation] == ""} {
518 set fd [open test.db w]
519 puts $fd "This is not really a database"
523 CREATE TABLE t1(a,b,c);
525 } {1 {file is encrypted or is not a database}}
528 # Ticket #1371. Allow floating point numbers of the form .N or N.
537 execsql {SELECT 3.e0 }
540 execsql {SELECT .4e+1}
543 # Ticket #1582. Ensure that an unknown table in a LIMIT clause applied to
544 # a UNION ALL query causes an error, not a crash.
549 ifcapable subquery&&compound {
552 SELECT * FROM sqlite_master
554 SELECT * FROM sqlite_master
555 LIMIT (SELECT count(*) FROM blah);
557 } {1 {no such table: blah}}
560 CREATE TABLE logs(msg TEXT, timestamp INTEGER, dbtime TEXT);
563 SELECT * FROM logs WHERE logs.oid >= (SELECT head FROM logs_base)
566 LIMIT (SELECT lmt FROM logs_base) ;
568 } {1 {no such table: logs_base}}
571 # Overflow the lemon parser stack by providing an overly complex
572 # expression. Make sure that the overflow is detected and reported.
575 execsql {CREATE TABLE t1(x)}
576 set sql "INSERT INTO t1 VALUES("
578 for {set i 0} {$i<200} {incr i} {
584 } {1 {parser stack overflow}}
591 SELECT name, type FROM sqlite_master WHERE name IS NULL
593 SELECT type, name FROM sqlite_master WHERE type IS NULL
594 ORDER BY 1, 2, 1, 2, 1, 2
599 SELECT name, type FROM sqlite_master WHERE name IS NULL
601 SELECT type, name FROM sqlite_master WHERE type IS NULL
602 ORDER BY 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2
607 # Ticket #1912. Make the tokenizer require a space after a numeric
614 } {1 {unrecognized token: "123abc"}}
619 } {1 {unrecognized token: "123.4e5ghi"}}
622 # Additional integer encoding tests.
627 INSERT INTO t3 VALUES(-18);
628 INSERT INTO t3 VALUES(-17);
629 INSERT INTO t3 VALUES(-16);
630 INSERT INTO t3 VALUES(-15);
631 INSERT INTO t3 VALUES(-14);
632 INSERT INTO t3 VALUES(-13);
633 INSERT INTO t3 VALUES(-12);
634 INSERT INTO t3 VALUES(-11);
635 INSERT INTO t3 VALUES(-10);
636 INSERT INTO t3 VALUES(-9);
637 INSERT INTO t3 VALUES(-8);
638 INSERT INTO t3 VALUES(-7);
639 INSERT INTO t3 VALUES(-6);
640 INSERT INTO t3 VALUES(-5);
641 INSERT INTO t3 VALUES(-4);
642 INSERT INTO t3 VALUES(-3);
643 INSERT INTO t3 VALUES(-2);
644 INSERT INTO t3 VALUES(-1);
645 INSERT INTO t3 VALUES(0);
646 INSERT INTO t3 VALUES(1);
647 INSERT INTO t3 VALUES(2);
648 INSERT INTO t3 VALUES(3);
649 INSERT INTO t3 VALUES(4);
650 INSERT INTO t3 VALUES(5);
651 INSERT INTO t3 VALUES(6);
652 INSERT INTO t3 VALUES(7);
653 INSERT INTO t3 VALUES(8);
654 INSERT INTO t3 VALUES(9);
655 INSERT INTO t3 VALUES(10);
656 INSERT INTO t3 VALUES(11);
657 INSERT INTO t3 VALUES(12);
658 INSERT INTO t3 VALUES(13);
659 INSERT INTO t3 VALUES(14);
660 INSERT INTO t3 VALUES(15);
661 INSERT INTO t3 VALUES(16);
662 INSERT INTO t3 VALUES(17);
663 INSERT INTO t3 VALUES(18);
664 INSERT INTO t3 VALUES(30);
665 INSERT INTO t3 VALUES(31);
666 INSERT INTO t3 VALUES(32);
667 INSERT INTO t3 VALUES(33);
668 INSERT INTO t3 VALUES(34);
669 INSERT INTO t3 VALUES(-30);
670 INSERT INTO t3 VALUES(-31);
671 INSERT INTO t3 VALUES(-32);
672 INSERT INTO t3 VALUES(-33);
673 INSERT INTO t3 VALUES(-34);
674 INSERT INTO t3 VALUES(62);
675 INSERT INTO t3 VALUES(63);
676 INSERT INTO t3 VALUES(64);
677 INSERT INTO t3 VALUES(65);
678 INSERT INTO t3 VALUES(66);
679 INSERT INTO t3 VALUES(-62);
680 INSERT INTO t3 VALUES(-63);
681 INSERT INTO t3 VALUES(-64);
682 INSERT INTO t3 VALUES(-65);
683 INSERT INTO t3 VALUES(-66);
684 INSERT INTO t3 VALUES(126);
685 INSERT INTO t3 VALUES(127);
686 INSERT INTO t3 VALUES(128);
687 INSERT INTO t3 VALUES(129);
688 INSERT INTO t3 VALUES(130);
689 INSERT INTO t3 VALUES(-126);
690 INSERT INTO t3 VALUES(-127);
691 INSERT INTO t3 VALUES(-128);
692 INSERT INTO t3 VALUES(-129);
693 INSERT INTO t3 VALUES(-130);
694 INSERT INTO t3 VALUES(254);
695 INSERT INTO t3 VALUES(255);
696 INSERT INTO t3 VALUES(256);
697 INSERT INTO t3 VALUES(257);
698 INSERT INTO t3 VALUES(258);
699 INSERT INTO t3 VALUES(-254);
700 INSERT INTO t3 VALUES(-255);
701 INSERT INTO t3 VALUES(-256);
702 INSERT INTO t3 VALUES(-257);
703 INSERT INTO t3 VALUES(-258);
704 INSERT INTO t3 VALUES(510);
705 INSERT INTO t3 VALUES(511);
706 INSERT INTO t3 VALUES(512);
707 INSERT INTO t3 VALUES(513);
708 INSERT INTO t3 VALUES(514);
709 INSERT INTO t3 VALUES(-510);
710 INSERT INTO t3 VALUES(-511);
711 INSERT INTO t3 VALUES(-512);
712 INSERT INTO t3 VALUES(-513);
713 INSERT INTO t3 VALUES(-514);
714 INSERT INTO t3 VALUES(1022);
715 INSERT INTO t3 VALUES(1023);
716 INSERT INTO t3 VALUES(1024);
717 INSERT INTO t3 VALUES(1025);
718 INSERT INTO t3 VALUES(1026);
719 INSERT INTO t3 VALUES(-1022);
720 INSERT INTO t3 VALUES(-1023);
721 INSERT INTO t3 VALUES(-1024);
722 INSERT INTO t3 VALUES(-1025);
723 INSERT INTO t3 VALUES(-1026);
724 INSERT INTO t3 VALUES(2046);
725 INSERT INTO t3 VALUES(2047);
726 INSERT INTO t3 VALUES(2048);
727 INSERT INTO t3 VALUES(2049);
728 INSERT INTO t3 VALUES(2050);
729 INSERT INTO t3 VALUES(-2046);
730 INSERT INTO t3 VALUES(-2047);
731 INSERT INTO t3 VALUES(-2048);
732 INSERT INTO t3 VALUES(-2049);
733 INSERT INTO t3 VALUES(-2050);
734 INSERT INTO t3 VALUES(4094);
735 INSERT INTO t3 VALUES(4095);
736 INSERT INTO t3 VALUES(4096);
737 INSERT INTO t3 VALUES(4097);
738 INSERT INTO t3 VALUES(4098);
739 INSERT INTO t3 VALUES(-4094);
740 INSERT INTO t3 VALUES(-4095);
741 INSERT INTO t3 VALUES(-4096);
742 INSERT INTO t3 VALUES(-4097);
743 INSERT INTO t3 VALUES(-4098);
744 INSERT INTO t3 VALUES(8190);
745 INSERT INTO t3 VALUES(8191);
746 INSERT INTO t3 VALUES(8192);
747 INSERT INTO t3 VALUES(8193);
748 INSERT INTO t3 VALUES(8194);
749 INSERT INTO t3 VALUES(-8190);
750 INSERT INTO t3 VALUES(-8191);
751 INSERT INTO t3 VALUES(-8192);
752 INSERT INTO t3 VALUES(-8193);
753 INSERT INTO t3 VALUES(-8194);
754 INSERT INTO t3 VALUES(16382);
755 INSERT INTO t3 VALUES(16383);
756 INSERT INTO t3 VALUES(16384);
757 INSERT INTO t3 VALUES(16385);
758 INSERT INTO t3 VALUES(16386);
759 INSERT INTO t3 VALUES(-16382);
760 INSERT INTO t3 VALUES(-16383);
761 INSERT INTO t3 VALUES(-16384);
762 INSERT INTO t3 VALUES(-16385);
763 INSERT INTO t3 VALUES(-16386);
764 INSERT INTO t3 VALUES(32766);
765 INSERT INTO t3 VALUES(32767);
766 INSERT INTO t3 VALUES(32768);
767 INSERT INTO t3 VALUES(32769);
768 INSERT INTO t3 VALUES(32770);
769 INSERT INTO t3 VALUES(-32766);
770 INSERT INTO t3 VALUES(-32767);
771 INSERT INTO t3 VALUES(-32768);
772 INSERT INTO t3 VALUES(-32769);
773 INSERT INTO t3 VALUES(-32770);
774 INSERT INTO t3 VALUES(65534);
775 INSERT INTO t3 VALUES(65535);
776 INSERT INTO t3 VALUES(65536);
777 INSERT INTO t3 VALUES(65537);
778 INSERT INTO t3 VALUES(65538);
779 INSERT INTO t3 VALUES(-65534);
780 INSERT INTO t3 VALUES(-65535);
781 INSERT INTO t3 VALUES(-65536);
782 INSERT INTO t3 VALUES(-65537);
783 INSERT INTO t3 VALUES(-65538);
784 INSERT INTO t3 VALUES(131070);
785 INSERT INTO t3 VALUES(131071);
786 INSERT INTO t3 VALUES(131072);
787 INSERT INTO t3 VALUES(131073);
788 INSERT INTO t3 VALUES(131074);
789 INSERT INTO t3 VALUES(-131070);
790 INSERT INTO t3 VALUES(-131071);
791 INSERT INTO t3 VALUES(-131072);
792 INSERT INTO t3 VALUES(-131073);
793 INSERT INTO t3 VALUES(-131074);
794 INSERT INTO t3 VALUES(262142);
795 INSERT INTO t3 VALUES(262143);
796 INSERT INTO t3 VALUES(262144);
797 INSERT INTO t3 VALUES(262145);
798 INSERT INTO t3 VALUES(262146);
799 INSERT INTO t3 VALUES(-262142);
800 INSERT INTO t3 VALUES(-262143);
801 INSERT INTO t3 VALUES(-262144);
802 INSERT INTO t3 VALUES(-262145);
803 INSERT INTO t3 VALUES(-262146);
804 INSERT INTO t3 VALUES(524286);
805 INSERT INTO t3 VALUES(524287);
806 INSERT INTO t3 VALUES(524288);
807 INSERT INTO t3 VALUES(524289);
808 INSERT INTO t3 VALUES(524290);
809 INSERT INTO t3 VALUES(-524286);
810 INSERT INTO t3 VALUES(-524287);
811 INSERT INTO t3 VALUES(-524288);
812 INSERT INTO t3 VALUES(-524289);
813 INSERT INTO t3 VALUES(-524290);
814 INSERT INTO t3 VALUES(1048574);
815 INSERT INTO t3 VALUES(1048575);
816 INSERT INTO t3 VALUES(1048576);
817 INSERT INTO t3 VALUES(1048577);
818 INSERT INTO t3 VALUES(1048578);
819 INSERT INTO t3 VALUES(-1048574);
820 INSERT INTO t3 VALUES(-1048575);
821 INSERT INTO t3 VALUES(-1048576);
822 INSERT INTO t3 VALUES(-1048577);
823 INSERT INTO t3 VALUES(-1048578);
824 INSERT INTO t3 VALUES(2097150);
825 INSERT INTO t3 VALUES(2097151);
826 INSERT INTO t3 VALUES(2097152);
827 INSERT INTO t3 VALUES(2097153);
828 INSERT INTO t3 VALUES(2097154);
829 INSERT INTO t3 VALUES(-2097150);
830 INSERT INTO t3 VALUES(-2097151);
831 INSERT INTO t3 VALUES(-2097152);
832 INSERT INTO t3 VALUES(-2097153);
833 INSERT INTO t3 VALUES(-2097154);
834 INSERT INTO t3 VALUES(4194302);
835 INSERT INTO t3 VALUES(4194303);
836 INSERT INTO t3 VALUES(4194304);
837 INSERT INTO t3 VALUES(4194305);
838 INSERT INTO t3 VALUES(4194306);
839 INSERT INTO t3 VALUES(-4194302);
840 INSERT INTO t3 VALUES(-4194303);
841 INSERT INTO t3 VALUES(-4194304);
842 INSERT INTO t3 VALUES(-4194305);
843 INSERT INTO t3 VALUES(-4194306);
844 INSERT INTO t3 VALUES(8388606);
845 INSERT INTO t3 VALUES(8388607);
846 INSERT INTO t3 VALUES(8388608);
847 INSERT INTO t3 VALUES(8388609);
848 INSERT INTO t3 VALUES(8388610);
849 INSERT INTO t3 VALUES(-8388606);
850 INSERT INTO t3 VALUES(-8388607);
851 INSERT INTO t3 VALUES(-8388608);
852 INSERT INTO t3 VALUES(-8388609);
853 INSERT INTO t3 VALUES(-8388610);
854 INSERT INTO t3 VALUES(16777214);
855 INSERT INTO t3 VALUES(16777215);
856 INSERT INTO t3 VALUES(16777216);
857 INSERT INTO t3 VALUES(16777217);
858 INSERT INTO t3 VALUES(16777218);
859 INSERT INTO t3 VALUES(-16777214);
860 INSERT INTO t3 VALUES(-16777215);
861 INSERT INTO t3 VALUES(-16777216);
862 INSERT INTO t3 VALUES(-16777217);
863 INSERT INTO t3 VALUES(-16777218);
864 INSERT INTO t3 VALUES(33554430);
865 INSERT INTO t3 VALUES(33554431);
866 INSERT INTO t3 VALUES(33554432);
867 INSERT INTO t3 VALUES(33554433);
868 INSERT INTO t3 VALUES(33554434);
869 INSERT INTO t3 VALUES(-33554430);
870 INSERT INTO t3 VALUES(-33554431);
871 INSERT INTO t3 VALUES(-33554432);
872 INSERT INTO t3 VALUES(-33554433);
873 INSERT INTO t3 VALUES(-33554434);
874 INSERT INTO t3 VALUES(67108862);
875 INSERT INTO t3 VALUES(67108863);
876 INSERT INTO t3 VALUES(67108864);
877 INSERT INTO t3 VALUES(67108865);
878 INSERT INTO t3 VALUES(67108866);
879 INSERT INTO t3 VALUES(-67108862);
880 INSERT INTO t3 VALUES(-67108863);
881 INSERT INTO t3 VALUES(-67108864);
882 INSERT INTO t3 VALUES(-67108865);
883 INSERT INTO t3 VALUES(-67108866);
884 INSERT INTO t3 VALUES(134217726);
885 INSERT INTO t3 VALUES(134217727);
886 INSERT INTO t3 VALUES(134217728);
887 INSERT INTO t3 VALUES(134217729);
888 INSERT INTO t3 VALUES(134217730);
889 INSERT INTO t3 VALUES(-134217726);
890 INSERT INTO t3 VALUES(-134217727);
891 INSERT INTO t3 VALUES(-134217728);
892 INSERT INTO t3 VALUES(-134217729);
893 INSERT INTO t3 VALUES(-134217730);
894 INSERT INTO t3 VALUES(268435454);
895 INSERT INTO t3 VALUES(268435455);
896 INSERT INTO t3 VALUES(268435456);
897 INSERT INTO t3 VALUES(268435457);
898 INSERT INTO t3 VALUES(268435458);
899 INSERT INTO t3 VALUES(-268435454);
900 INSERT INTO t3 VALUES(-268435455);
901 INSERT INTO t3 VALUES(-268435456);
902 INSERT INTO t3 VALUES(-268435457);
903 INSERT INTO t3 VALUES(-268435458);
904 INSERT INTO t3 VALUES(536870910);
905 INSERT INTO t3 VALUES(536870911);
906 INSERT INTO t3 VALUES(536870912);
907 INSERT INTO t3 VALUES(536870913);
908 INSERT INTO t3 VALUES(536870914);
909 INSERT INTO t3 VALUES(-536870910);
910 INSERT INTO t3 VALUES(-536870911);
911 INSERT INTO t3 VALUES(-536870912);
912 INSERT INTO t3 VALUES(-536870913);
913 INSERT INTO t3 VALUES(-536870914);
914 INSERT INTO t3 VALUES(1073741822);
915 INSERT INTO t3 VALUES(1073741823);
916 INSERT INTO t3 VALUES(1073741824);
917 INSERT INTO t3 VALUES(1073741825);
918 INSERT INTO t3 VALUES(1073741826);
919 INSERT INTO t3 VALUES(-1073741822);
920 INSERT INTO t3 VALUES(-1073741823);
921 INSERT INTO t3 VALUES(-1073741824);
922 INSERT INTO t3 VALUES(-1073741825);
923 INSERT INTO t3 VALUES(-1073741826);
924 INSERT INTO t3 VALUES(2147483646);
925 INSERT INTO t3 VALUES(2147483647);
926 INSERT INTO t3 VALUES(2147483648);
927 INSERT INTO t3 VALUES(2147483649);
928 INSERT INTO t3 VALUES(2147483650);
929 INSERT INTO t3 VALUES(-2147483646);
930 INSERT INTO t3 VALUES(-2147483647);
931 INSERT INTO t3 VALUES(-2147483648);
932 INSERT INTO t3 VALUES(-2147483649);
933 INSERT INTO t3 VALUES(-2147483650);
934 INSERT INTO t3 VALUES(4294967294);
935 INSERT INTO t3 VALUES(4294967295);
936 INSERT INTO t3 VALUES(4294967296);
937 INSERT INTO t3 VALUES(4294967297);
938 INSERT INTO t3 VALUES(4294967298);
939 INSERT INTO t3 VALUES(-4294967294);
940 INSERT INTO t3 VALUES(-4294967295);
941 INSERT INTO t3 VALUES(-4294967296);
942 INSERT INTO t3 VALUES(-4294967297);
943 INSERT INTO t3 VALUES(-4294967298);
944 INSERT INTO t3 VALUES(8589934590);
945 INSERT INTO t3 VALUES(8589934591);
946 INSERT INTO t3 VALUES(8589934592);
947 INSERT INTO t3 VALUES(8589934593);
948 INSERT INTO t3 VALUES(8589934594);
949 INSERT INTO t3 VALUES(-8589934590);
950 INSERT INTO t3 VALUES(-8589934591);
951 INSERT INTO t3 VALUES(-8589934592);
952 INSERT INTO t3 VALUES(-8589934593);
953 INSERT INTO t3 VALUES(-8589934594);
954 INSERT INTO t3 VALUES(17179869182);
955 INSERT INTO t3 VALUES(17179869183);
956 INSERT INTO t3 VALUES(17179869184);
957 INSERT INTO t3 VALUES(17179869185);
958 INSERT INTO t3 VALUES(17179869186);
959 INSERT INTO t3 VALUES(-17179869182);
960 INSERT INTO t3 VALUES(-17179869183);
961 INSERT INTO t3 VALUES(-17179869184);
962 INSERT INTO t3 VALUES(-17179869185);
963 INSERT INTO t3 VALUES(-17179869186);
964 INSERT INTO t3 VALUES(34359738366);
965 INSERT INTO t3 VALUES(34359738367);
966 INSERT INTO t3 VALUES(34359738368);
967 INSERT INTO t3 VALUES(34359738369);
968 INSERT INTO t3 VALUES(34359738370);
969 INSERT INTO t3 VALUES(-34359738366);
970 INSERT INTO t3 VALUES(-34359738367);
971 INSERT INTO t3 VALUES(-34359738368);
972 INSERT INTO t3 VALUES(-34359738369);
973 INSERT INTO t3 VALUES(-34359738370);
974 INSERT INTO t3 VALUES(68719476734);
975 INSERT INTO t3 VALUES(68719476735);
976 INSERT INTO t3 VALUES(68719476736);
977 INSERT INTO t3 VALUES(68719476737);
978 INSERT INTO t3 VALUES(68719476738);
979 INSERT INTO t3 VALUES(-68719476734);
980 INSERT INTO t3 VALUES(-68719476735);
981 INSERT INTO t3 VALUES(-68719476736);
982 INSERT INTO t3 VALUES(-68719476737);
983 INSERT INTO t3 VALUES(-68719476738);
984 INSERT INTO t3 VALUES(137438953470);
985 INSERT INTO t3 VALUES(137438953471);
986 INSERT INTO t3 VALUES(137438953472);
987 INSERT INTO t3 VALUES(137438953473);
988 INSERT INTO t3 VALUES(137438953474);
989 INSERT INTO t3 VALUES(-137438953470);
990 INSERT INTO t3 VALUES(-137438953471);
991 INSERT INTO t3 VALUES(-137438953472);
992 INSERT INTO t3 VALUES(-137438953473);
993 INSERT INTO t3 VALUES(-137438953474);
994 INSERT INTO t3 VALUES(274877906942);
995 INSERT INTO t3 VALUES(274877906943);
996 INSERT INTO t3 VALUES(274877906944);
997 INSERT INTO t3 VALUES(274877906945);
998 INSERT INTO t3 VALUES(274877906946);
999 INSERT INTO t3 VALUES(-274877906942);
1000 INSERT INTO t3 VALUES(-274877906943);
1001 INSERT INTO t3 VALUES(-274877906944);
1002 INSERT INTO t3 VALUES(-274877906945);
1003 INSERT INTO t3 VALUES(-274877906946);
1004 INSERT INTO t3 VALUES(549755813886);
1005 INSERT INTO t3 VALUES(549755813887);
1006 INSERT INTO t3 VALUES(549755813888);
1007 INSERT INTO t3 VALUES(549755813889);
1008 INSERT INTO t3 VALUES(549755813890);
1009 INSERT INTO t3 VALUES(-549755813886);
1010 INSERT INTO t3 VALUES(-549755813887);
1011 INSERT INTO t3 VALUES(-549755813888);
1012 INSERT INTO t3 VALUES(-549755813889);
1013 INSERT INTO t3 VALUES(-549755813890);
1014 INSERT INTO t3 VALUES(1099511627774);
1015 INSERT INTO t3 VALUES(1099511627775);
1016 INSERT INTO t3 VALUES(1099511627776);
1017 INSERT INTO t3 VALUES(1099511627777);
1018 INSERT INTO t3 VALUES(1099511627778);
1019 INSERT INTO t3 VALUES(-1099511627774);
1020 INSERT INTO t3 VALUES(-1099511627775);
1021 INSERT INTO t3 VALUES(-1099511627776);
1022 INSERT INTO t3 VALUES(-1099511627777);
1023 INSERT INTO t3 VALUES(-1099511627778);
1024 INSERT INTO t3 VALUES(2199023255550);
1025 INSERT INTO t3 VALUES(2199023255551);
1026 INSERT INTO t3 VALUES(2199023255552);
1027 INSERT INTO t3 VALUES(2199023255553);
1028 INSERT INTO t3 VALUES(2199023255554);
1029 INSERT INTO t3 VALUES(-2199023255550);
1030 INSERT INTO t3 VALUES(-2199023255551);
1031 INSERT INTO t3 VALUES(-2199023255552);
1032 INSERT INTO t3 VALUES(-2199023255553);
1033 INSERT INTO t3 VALUES(-2199023255554);
1034 INSERT INTO t3 VALUES(4398046511102);
1035 INSERT INTO t3 VALUES(4398046511103);
1036 INSERT INTO t3 VALUES(4398046511104);
1037 INSERT INTO t3 VALUES(4398046511105);
1038 INSERT INTO t3 VALUES(4398046511106);
1039 INSERT INTO t3 VALUES(-4398046511102);
1040 INSERT INTO t3 VALUES(-4398046511103);
1041 INSERT INTO t3 VALUES(-4398046511104);
1042 INSERT INTO t3 VALUES(-4398046511105);
1043 INSERT INTO t3 VALUES(-4398046511106);
1044 INSERT INTO t3 VALUES(8796093022206);
1045 INSERT INTO t3 VALUES(8796093022207);
1046 INSERT INTO t3 VALUES(8796093022208);
1047 INSERT INTO t3 VALUES(8796093022209);
1048 INSERT INTO t3 VALUES(8796093022210);
1049 INSERT INTO t3 VALUES(-8796093022206);
1050 INSERT INTO t3 VALUES(-8796093022207);
1051 INSERT INTO t3 VALUES(-8796093022208);
1052 INSERT INTO t3 VALUES(-8796093022209);
1053 INSERT INTO t3 VALUES(-8796093022210);
1054 INSERT INTO t3 VALUES(17592186044414);
1055 INSERT INTO t3 VALUES(17592186044415);
1056 INSERT INTO t3 VALUES(17592186044416);
1057 INSERT INTO t3 VALUES(17592186044417);
1058 INSERT INTO t3 VALUES(17592186044418);
1059 INSERT INTO t3 VALUES(-17592186044414);
1060 INSERT INTO t3 VALUES(-17592186044415);
1061 INSERT INTO t3 VALUES(-17592186044416);
1062 INSERT INTO t3 VALUES(-17592186044417);
1063 INSERT INTO t3 VALUES(-17592186044418);
1064 INSERT INTO t3 VALUES(35184372088830);
1065 INSERT INTO t3 VALUES(35184372088831);
1066 INSERT INTO t3 VALUES(35184372088832);
1067 INSERT INTO t3 VALUES(35184372088833);
1068 INSERT INTO t3 VALUES(35184372088834);
1069 INSERT INTO t3 VALUES(-35184372088830);
1070 INSERT INTO t3 VALUES(-35184372088831);
1071 INSERT INTO t3 VALUES(-35184372088832);
1072 INSERT INTO t3 VALUES(-35184372088833);
1073 INSERT INTO t3 VALUES(-35184372088834);
1074 INSERT INTO t3 VALUES(70368744177662);
1075 INSERT INTO t3 VALUES(70368744177663);
1076 INSERT INTO t3 VALUES(70368744177664);
1077 INSERT INTO t3 VALUES(70368744177665);
1078 INSERT INTO t3 VALUES(70368744177666);
1079 INSERT INTO t3 VALUES(-70368744177662);
1080 INSERT INTO t3 VALUES(-70368744177663);
1081 INSERT INTO t3 VALUES(-70368744177664);
1082 INSERT INTO t3 VALUES(-70368744177665);
1083 INSERT INTO t3 VALUES(-70368744177666);
1084 INSERT INTO t3 VALUES(140737488355326);
1085 INSERT INTO t3 VALUES(140737488355327);
1086 INSERT INTO t3 VALUES(140737488355328);
1087 INSERT INTO t3 VALUES(140737488355329);
1088 INSERT INTO t3 VALUES(140737488355330);
1089 INSERT INTO t3 VALUES(-140737488355326);
1090 INSERT INTO t3 VALUES(-140737488355327);
1091 INSERT INTO t3 VALUES(-140737488355328);
1092 INSERT INTO t3 VALUES(-140737488355329);
1093 INSERT INTO t3 VALUES(-140737488355330);
1094 INSERT INTO t3 VALUES(281474976710654);
1095 INSERT INTO t3 VALUES(281474976710655);
1096 INSERT INTO t3 VALUES(281474976710656);
1097 INSERT INTO t3 VALUES(281474976710657);
1098 INSERT INTO t3 VALUES(281474976710658);
1099 INSERT INTO t3 VALUES(-281474976710654);
1100 INSERT INTO t3 VALUES(-281474976710655);
1101 INSERT INTO t3 VALUES(-281474976710656);
1102 INSERT INTO t3 VALUES(-281474976710657);
1103 INSERT INTO t3 VALUES(-281474976710658);
1104 INSERT INTO t3 VALUES(562949953421310);
1105 INSERT INTO t3 VALUES(562949953421311);
1106 INSERT INTO t3 VALUES(562949953421312);
1107 INSERT INTO t3 VALUES(562949953421313);
1108 INSERT INTO t3 VALUES(562949953421314);
1109 INSERT INTO t3 VALUES(-562949953421310);
1110 INSERT INTO t3 VALUES(-562949953421311);
1111 INSERT INTO t3 VALUES(-562949953421312);
1112 INSERT INTO t3 VALUES(-562949953421313);
1113 INSERT INTO t3 VALUES(-562949953421314);
1114 INSERT INTO t3 VALUES(1125899906842622);
1115 INSERT INTO t3 VALUES(1125899906842623);
1116 INSERT INTO t3 VALUES(1125899906842624);
1117 INSERT INTO t3 VALUES(1125899906842625);
1118 INSERT INTO t3 VALUES(1125899906842626);
1119 INSERT INTO t3 VALUES(-1125899906842622);
1120 INSERT INTO t3 VALUES(-1125899906842623);
1121 INSERT INTO t3 VALUES(-1125899906842624);
1122 INSERT INTO t3 VALUES(-1125899906842625);
1123 INSERT INTO t3 VALUES(-1125899906842626);
1124 INSERT INTO t3 VALUES(2251799813685246);
1125 INSERT INTO t3 VALUES(2251799813685247);
1126 INSERT INTO t3 VALUES(2251799813685248);
1127 INSERT INTO t3 VALUES(2251799813685249);
1128 INSERT INTO t3 VALUES(2251799813685250);
1129 INSERT INTO t3 VALUES(-2251799813685246);
1130 INSERT INTO t3 VALUES(-2251799813685247);
1131 INSERT INTO t3 VALUES(-2251799813685248);
1132 INSERT INTO t3 VALUES(-2251799813685249);
1133 INSERT INTO t3 VALUES(-2251799813685250);
1134 INSERT INTO t3 VALUES(4503599627370494);
1135 INSERT INTO t3 VALUES(4503599627370495);
1136 INSERT INTO t3 VALUES(4503599627370496);
1137 INSERT INTO t3 VALUES(4503599627370497);
1138 INSERT INTO t3 VALUES(4503599627370498);
1139 INSERT INTO t3 VALUES(-4503599627370494);
1140 INSERT INTO t3 VALUES(-4503599627370495);
1141 INSERT INTO t3 VALUES(-4503599627370496);
1142 INSERT INTO t3 VALUES(-4503599627370497);
1143 INSERT INTO t3 VALUES(-4503599627370498);
1144 INSERT INTO t3 VALUES(9007199254740990);
1145 INSERT INTO t3 VALUES(9007199254740991);
1146 INSERT INTO t3 VALUES(9007199254740992);
1147 INSERT INTO t3 VALUES(9007199254740993);
1148 INSERT INTO t3 VALUES(9007199254740994);
1149 INSERT INTO t3 VALUES(-9007199254740990);
1150 INSERT INTO t3 VALUES(-9007199254740991);
1151 INSERT INTO t3 VALUES(-9007199254740992);
1152 INSERT INTO t3 VALUES(-9007199254740993);
1153 INSERT INTO t3 VALUES(-9007199254740994);
1154 INSERT INTO t3 VALUES(18014398509481982);
1155 INSERT INTO t3 VALUES(18014398509481983);
1156 INSERT INTO t3 VALUES(18014398509481984);
1157 INSERT INTO t3 VALUES(18014398509481985);
1158 INSERT INTO t3 VALUES(18014398509481986);
1159 INSERT INTO t3 VALUES(-18014398509481982);
1160 INSERT INTO t3 VALUES(-18014398509481983);
1161 INSERT INTO t3 VALUES(-18014398509481984);
1162 INSERT INTO t3 VALUES(-18014398509481985);
1163 INSERT INTO t3 VALUES(-18014398509481986);
1164 INSERT INTO t3 VALUES(36028797018963966);
1165 INSERT INTO t3 VALUES(36028797018963967);
1166 INSERT INTO t3 VALUES(36028797018963968);
1167 INSERT INTO t3 VALUES(36028797018963969);
1168 INSERT INTO t3 VALUES(36028797018963970);
1169 INSERT INTO t3 VALUES(-36028797018963966);
1170 INSERT INTO t3 VALUES(-36028797018963967);
1171 INSERT INTO t3 VALUES(-36028797018963968);
1172 INSERT INTO t3 VALUES(-36028797018963969);
1173 INSERT INTO t3 VALUES(-36028797018963970);
1174 INSERT INTO t3 VALUES(72057594037927934);
1175 INSERT INTO t3 VALUES(72057594037927935);
1176 INSERT INTO t3 VALUES(72057594037927936);
1177 INSERT INTO t3 VALUES(72057594037927937);
1178 INSERT INTO t3 VALUES(72057594037927938);
1179 INSERT INTO t3 VALUES(-72057594037927934);
1180 INSERT INTO t3 VALUES(-72057594037927935);
1181 INSERT INTO t3 VALUES(-72057594037927936);
1182 INSERT INTO t3 VALUES(-72057594037927937);
1183 INSERT INTO t3 VALUES(-72057594037927938);
1184 INSERT INTO t3 VALUES(144115188075855870);
1185 INSERT INTO t3 VALUES(144115188075855871);
1186 INSERT INTO t3 VALUES(144115188075855872);
1187 INSERT INTO t3 VALUES(144115188075855873);
1188 INSERT INTO t3 VALUES(144115188075855874);
1189 INSERT INTO t3 VALUES(-144115188075855870);
1190 INSERT INTO t3 VALUES(-144115188075855871);
1191 INSERT INTO t3 VALUES(-144115188075855872);
1192 INSERT INTO t3 VALUES(-144115188075855873);
1193 INSERT INTO t3 VALUES(-144115188075855874);
1194 INSERT INTO t3 VALUES(288230376151711742);
1195 INSERT INTO t3 VALUES(288230376151711743);
1196 INSERT INTO t3 VALUES(288230376151711744);
1197 INSERT INTO t3 VALUES(288230376151711745);
1198 INSERT INTO t3 VALUES(288230376151711746);
1199 INSERT INTO t3 VALUES(-288230376151711742);
1200 INSERT INTO t3 VALUES(-288230376151711743);
1201 INSERT INTO t3 VALUES(-288230376151711744);
1202 INSERT INTO t3 VALUES(-288230376151711745);
1203 INSERT INTO t3 VALUES(-288230376151711746);
1204 INSERT INTO t3 VALUES(576460752303423486);
1205 INSERT INTO t3 VALUES(576460752303423487);
1206 INSERT INTO t3 VALUES(576460752303423488);
1207 INSERT INTO t3 VALUES(576460752303423489);
1208 INSERT INTO t3 VALUES(576460752303423490);
1209 INSERT INTO t3 VALUES(-576460752303423486);
1210 INSERT INTO t3 VALUES(-576460752303423487);
1211 INSERT INTO t3 VALUES(-576460752303423488);
1212 INSERT INTO t3 VALUES(-576460752303423489);
1213 INSERT INTO t3 VALUES(-576460752303423490);
1214 INSERT INTO t3 VALUES(1152921504606846974);
1215 INSERT INTO t3 VALUES(1152921504606846975);
1216 INSERT INTO t3 VALUES(1152921504606846976);
1217 INSERT INTO t3 VALUES(1152921504606846977);
1218 INSERT INTO t3 VALUES(1152921504606846978);
1219 INSERT INTO t3 VALUES(-1152921504606846974);
1220 INSERT INTO t3 VALUES(-1152921504606846975);
1221 INSERT INTO t3 VALUES(-1152921504606846976);
1222 INSERT INTO t3 VALUES(-1152921504606846977);
1223 INSERT INTO t3 VALUES(-1152921504606846978);
1224 INSERT INTO t3 VALUES(2305843009213693950);
1225 INSERT INTO t3 VALUES(2305843009213693951);
1226 INSERT INTO t3 VALUES(2305843009213693952);
1227 INSERT INTO t3 VALUES(2305843009213693953);
1228 INSERT INTO t3 VALUES(2305843009213693954);
1229 INSERT INTO t3 VALUES(-2305843009213693950);
1230 INSERT INTO t3 VALUES(-2305843009213693951);
1231 INSERT INTO t3 VALUES(-2305843009213693952);
1232 INSERT INTO t3 VALUES(-2305843009213693953);
1233 INSERT INTO t3 VALUES(-2305843009213693954);
1234 INSERT INTO t3 VALUES(4611686018427387902);
1235 INSERT INTO t3 VALUES(4611686018427387903);
1236 INSERT INTO t3 VALUES(4611686018427387904);
1237 INSERT INTO t3 VALUES(4611686018427387905);
1238 INSERT INTO t3 VALUES(4611686018427387906);
1239 INSERT INTO t3 VALUES(-4611686018427387902);
1240 INSERT INTO t3 VALUES(-4611686018427387903);
1241 INSERT INTO t3 VALUES(-4611686018427387904);
1242 INSERT INTO t3 VALUES(-4611686018427387905);
1243 INSERT INTO t3 VALUES(-4611686018427387906);
1244 INSERT INTO t3 VALUES(9223372036854775806);
1245 INSERT INTO t3 VALUES(9223372036854775807);
1246 INSERT INTO t3 VALUES(-9223372036854775806);
1247 INSERT INTO t3 VALUES(-9223372036854775807);
1248 INSERT INTO t3 VALUES(-9223372036854775808);
1249 SELECT x FROM t3 ORDER BY x;
1251 } {-9223372036854775808\
1252 -9223372036854775807\
1253 -9223372036854775806\
1254 -4611686018427387906\
1255 -4611686018427387905\
1256 -4611686018427387904\
1257 -4611686018427387903\
1258 -4611686018427387902\
1259 -2305843009213693954\
1260 -2305843009213693953\
1261 -2305843009213693952\
1262 -2305843009213693951\
1263 -2305843009213693950\
1264 -1152921504606846978\
1265 -1152921504606846977\
1266 -1152921504606846976\
1267 -1152921504606846975\
1268 -1152921504606846974\
1269 -576460752303423490\
1270 -576460752303423489\
1271 -576460752303423488\
1272 -576460752303423487\
1273 -576460752303423486\
1274 -288230376151711746\
1275 -288230376151711745\
1276 -288230376151711744\
1277 -288230376151711743\
1278 -288230376151711742\
1279 -144115188075855874\
1280 -144115188075855873\
1281 -144115188075855872\
1282 -144115188075855871\
1283 -144115188075855870\
1856 1152921504606846974\
1857 1152921504606846975\
1858 1152921504606846976\
1859 1152921504606846977\
1860 1152921504606846978\
1861 2305843009213693950\
1862 2305843009213693951\
1863 2305843009213693952\
1864 2305843009213693953\
1865 2305843009213693954\
1866 4611686018427387902\
1867 4611686018427387903\
1868 4611686018427387904\
1869 4611686018427387905\
1870 4611686018427387906\
1871 9223372036854775806\
1872 9223372036854775807}