1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Backpatch: Fix tsvector_out() and tsquery_out() to escape backslesh, add test of that.

Patch by Bruce Momjian <bruce@momjian.us>
This commit is contained in:
Teodor Sigaev
2007-11-16 17:17:52 +00:00
parent d38814675e
commit 4fc32d5891
4 changed files with 10 additions and 2 deletions

View File

@@ -65,6 +65,8 @@ SELECT '1&(2&(4&(5|!6)))'::tsquery;
SELECT '1&(''2''&('' 4''&(\\|5 | ''6 \\'' !|&'')))'::tsquery;
SELECT '''the wether'':dc & '' sKies '':BC & a:d b:a';
SELECT tsvector_in(tsvector_out($$'\\as' ab\c ab\\c AB\\\c ab\\\\c$$::tsvector)), tsquery_in(tsquery_out($$'\\as'$$::tsquery));
select lexize('simple', 'ASD56 hsdkf');
select lexize('en_stem', 'SKIES Problems identity');