Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad3db67

Browse files
committed
Add SQL_ASCII encoding test case
1 parent3526017 commitad3db67

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎src/test/regress/sql/sql_ascii.sql

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
droptable computer_terms;
2+
createtablecomputer_terms(termtext, categorytext, commentschar(16));
3+
createindexcomputer_terms_index1on computer_terms using btree(term);
4+
createindexcomputer_terms_index2on computer_terms using btree(category);
5+
insert into computer_termsvalues('computer display','X-A01-Y','a comment 1');
6+
insert into computer_termsvalues('computer graphics','T-B01-Y','a comment 2');
7+
insert into computer_termsvalues('computer programmer','S-Z01-Y','a comment 3');
8+
vacuum computer_terms;
9+
select*from computer_terms;
10+
select*from computer_termswhere category='X-A01-Y';
11+
select*from computer_termswhere category ~*'x-a01-y';
12+
select*from computer_termswhere categorylike'_-A01-_';
13+
select*from computer_termswhere categorylike'_-A%';
14+
select*from computer_termswhere term ~'computer [dg]';
15+
select*from computer_termswhere term ~*'computer [DG]';
16+
select*,character_length(term)from computer_terms;
17+
select*,octet_length(term)from computer_terms;
18+
select*,position('s'in term)from computer_terms;
19+
select*,substring(termfrom10 for4)from computer_terms;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp