补充测试用例

This commit is contained in:
luozihao
2021-03-31 10:57:36 +08:00
parent 0f4e2bcb41
commit c58481a663
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,9 @@ select last_value from test_seq;
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "insert into test_tab(name) values('test7');"
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "select last_value from test_seq;"
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "select * from test_tab;"
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "Alter sequence test_seq cache 3;"
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "insert into test_tab(name) values('test9');"
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "select last_value from test_seq;"
drop user test_user cascade;
drop table if exists test_tab;
drop sequence if exists test_seq;

View File

@ -69,6 +69,16 @@ INSERT 0 1
7 | test7
(5 rows)
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "Alter sequence test_seq cache 3;"
ALTER SEQUENCE
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "insert into test_tab(name) values('test9');"
INSERT 0 1
\! @abs_bindir@/gsql -d regression -p @portstring@ -U test_user -W openGauss@123 -c "select last_value from test_seq;"
last_value
------------
11
(1 row)
drop user test_user cascade;
drop table if exists test_tab;
drop sequence if exists test_seq;