diff options
| author | Andrew Dunstan | 2007-11-25 15:37:11 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2007-11-25 15:37:11 +0000 |
| commit | 3de1f0daac2772d01086ad9a06a428c36648dd02 (patch) | |
| tree | 22403c3390a3c8341c19cfb2b35033c64fde5561 /src/test/regress | |
| parent | a999ff63ffaece8e612f52e50f1ca658d6628fa0 (diff) | |
Fix XML tag namespace change inadvertantly missed from previous fix. Add
regression test for XML names and numeric entities.
Diffstat (limited to 'src/test/regress')
| -rw-r--r-- | src/test/regress/expected/tsearch.out | 15 | ||||
| -rw-r--r-- | src/test/regress/sql/tsearch.sql | 4 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/test/regress/expected/tsearch.out b/src/test/regress/expected/tsearch.out index eb004020758..50656de9ae9 100644 --- a/src/test/regress/expected/tsearch.out +++ b/src/test/regress/expected/tsearch.out @@ -391,6 +391,21 @@ SELECT length(to_tsvector('english', '345 qwe@efd.r '' http://www.com/ http://ae 51 (1 row) +-- ts_debug +SELECT * from ts_debug('<myns:foo-bar_baz.blurfl>abc&nm1;def©ghiõjkl</myns:foo-bar_baz.blurfl>'); + alias | description | token | dictionaries | dictionary | lexemes +-----------+-----------------+----------------------------+----------------+--------------+--------- + tag | XML tag | <myns:foo-bar_baz.blurfl> | {} | | + asciiword | Word, all ASCII | abc | {english_stem} | english_stem | {abc} + entity | XML entity | &nm1; | {} | | + asciiword | Word, all ASCII | def | {english_stem} | english_stem | {def} + entity | XML entity | © | {} | | + asciiword | Word, all ASCII | ghi | {english_stem} | english_stem | {ghi} + entity | XML entity | õ | {} | | + asciiword | Word, all ASCII | jkl | {english_stem} | english_stem | {jkl} + tag | XML tag | </myns:foo-bar_baz.blurfl> | {} | | +(9 rows) + -- to_tsquery SELECT to_tsquery('english', 'qwe & sKies '); to_tsquery diff --git a/src/test/regress/sql/tsearch.sql b/src/test/regress/sql/tsearch.sql index 5f3e21b72a1..9b37a51391e 100644 --- a/src/test/regress/sql/tsearch.sql +++ b/src/test/regress/sql/tsearch.sql @@ -98,6 +98,10 @@ SELECT length(to_tsvector('english', '345 qwe@efd.r '' http://www.com/ http://ae /usr/local/fff /awdf/dwqe/4325 rewt/ewr wefjn /wqe-324/ewr gist.h gist.h.c gist.c. readline 4.2 4.2. 4.2, readline-4.2 readline-4.2. 234 <i <b> wow < jqw <> qwerty')); +-- ts_debug + +SELECT * from ts_debug('<myns:foo-bar_baz.blurfl>abc&nm1;def©ghiõjkl</myns:foo-bar_baz.blurfl>'); + -- to_tsquery SELECT to_tsquery('english', 'qwe & sKies '); |
