Skip to content
Snippets Groups Projects
Unverified Commit 2bf86225 authored by DomingoZhang's avatar DomingoZhang Committed by GitHub
Browse files

add order by to cases (#3895)


* Update char.test

* Update varchar.test

* Update char.test

* Update varchar.test

* Update char.result

* Update varchar.result

* adjust result

* adjust test cases

* add explain cases (#2)

* Update decimal.test

* Update timestamp.test

* Update go.mod

* Update go.mod

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.test

* Update timestamp.result

* adjust cases (#3)

* Update bigint.test

* Update bigint.result

* Update char.result

* Update char.test

* CI: add PR UT coverage (#4371)

Create a new yml file to support detect incremental code coverage

Approved by: @sukki37

* Update ut_pr.yml (#4439)

* Delete ut_pr.yml

Co-authored-by: default avatariamlinjunhong <49111204+iamlinjunhong@users.noreply.github.com>
Co-authored-by: default avatarYingfeng <yingfeng.zhang@gmail.com>
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: default avatarbrown <1173781832@qq.com>
Co-authored-by: default avatarmaomao <77312370+sukki37@users.noreply.github.com>
Co-authored-by: default avatarou yuanning <45346669+ouyuanning@users.noreply.github.com>
Co-authored-by: default avatarfengttt <fengttt@gmail.com>
parent 867a2666
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,8 @@ drop table t1;
create table t1 ( a int not null default 1, big bigint unsigned primary key);
insert into t1 (big) values (0),(18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612);
select * from t1;
select * from t1 order by big limit 1,3;
select * from t1 order by big limit 3 offset 1;
select * from t1 order by 1,2 asc limit 1,3;
select * from t1 order by big asc limit 3 offset 1;
select min(big),max(big),max(big)-1 from t1;
select min(big),max(big),max(big)-1 from t1 group by a;
drop table t1;
......@@ -66,7 +66,7 @@ drop table if exists t1;
drop table if exists t2;
create table t1 (sint64 bigint not null);
insert into t1 values (-9223372036854775808);
select * from t1 order by abs(1);
select * from t1 order by abs(1) desc;
drop table t1;
create table t1 (bigint_col bigint unsigned);
insert into t1 values (17666000000000000000);
......
......@@ -58,7 +58,7 @@ select concat_ws(LastName,FirstName) as fullname from Demochar where Age > 40 or
select concat_ws(LastName,FirstName),Gender,Age from Demochar where Gender='F' order by Age asc;
select cast(Age as char) as cAge from Demochar where cast(Age as char) like '2_';
-- @bvt:issue#3252
select cast(Age as char) and Age as cAge from Demochar where Age>=50 order by cAge;
select cast(Age as char) and Age as cAge from Demochar where Age>=50 order by cAge asc;
-- @bvt:issue
CREATE TABLE employees (
employeeNumber int(11) NOT NULL,
......@@ -90,7 +90,7 @@ insert into employees(employeeNumber,lastName,firstName,extension,email,officeC
(1501,'Bott','Larry','x2311','lbott@classicmodelcars.com','7',1102,'Sales Rep'),
(1504,'Jones','Barry','x102','bjones@classicmodelcars.com','7',1102,'Sales Rep'),
(1611,'Fixter','Andy','x101','afixter@classicmodelcars.com','6',1088,'Sales Rep');
select officeCode,count(officeCode) from employees group by officeCode having count(officeCode)>2;
select officeCode,count(officeCode) from employees group by officeCode having count(officeCode)>2 order by 1 asc,2 desc;
select lastName,firstName from employees where cast(officeCode as unsigned)>5 limit 2 offset 1;
select max(lastName),min(lastName) from employees;
select max(lastName),min(lastName),JobTitle from employees group by JobTitle;
......
......@@ -61,12 +61,12 @@ a big
1 18446744073709551613
1 18446744073709551614
1 18446744073709551615
select * from t1 order by big limit 1,3;
select * from t1 order by 1,2 asc limit 1,3;
a big
1 18446744073709551612
1 18446744073709551613
1 18446744073709551614
select * from t1 order by big limit 3 offset 1;
select * from t1 order by big asc limit 3 offset 1;
a big
1 18446744073709551612
1 18446744073709551613
......@@ -119,7 +119,7 @@ drop table if exists t1;
drop table if exists t2;
create table t1 (sint64 bigint not null);
insert into t1 values (-9223372036854775808);
select * from t1 order by abs(1);
select * from t1 order by abs(1) desc;
sint64
-9223372036854775808
drop table t1;
......
......@@ -108,7 +108,7 @@ Andrea F 45
Kelly F 54
select cast(Age as char) as cAge from Demochar where cast(Age as char) like '2_';
cage
select cast(Age as char) and Age as cAge from Demochar where Age>=50 order by cAge;
select cast(Age as char) and Age as cAge from Demochar where Age>=50 order by cAge asc;
cage
1
1
......@@ -142,7 +142,7 @@ insert into employees(employeeNumber,lastName,firstName,extension,email,officeC
(1501,'Bott','Larry','x2311','lbott@classicmodelcars.com','7',1102,'Sales Rep'),
(1504,'Jones','Barry','x102','bjones@classicmodelcars.com','7',1102,'Sales Rep'),
(1611,'Fixter','Andy','x101','afixter@classicmodelcars.com','6',1088,'Sales Rep');
select officeCode,count(officeCode) from employees group by officeCode having count(officeCode)>2;
select officeCode,count(officeCode) from employees group by officeCode having count(officeCode)>2 order by 1 asc,2 desc;
officecode count(officecode)
1 6
4 4
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment