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

Commitc5e3da5

Browse files
author
Artur Zakirov
committed
Tests fixes
1 parent5f8ea8a commitc5e3da5

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

‎contrib/shared_ispell/sql/shared_ispell.sql

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
CREATE EXTENSION shared_ispell;
22

3-
SELECT shared_ispell_mem_available();
4-
SELECT shared_ispell_mem_used();
5-
63
-- Test ISpell dictionary with ispell affix file
74
CREATETEXT SEARCH DICTIONARY shared_ispell (
85
Template=shared_ispell,
@@ -28,9 +25,6 @@ SELECT ts_lexize('shared_ispell', 'footballklubber');
2825
SELECT ts_lexize('shared_ispell','ballyklubber');
2926
SELECT ts_lexize('shared_ispell','footballyklubber');
3027

31-
SELECT shared_ispell_mem_available();
32-
SELECT shared_ispell_mem_used();
33-
3428
-- Test ISpell dictionary with hunspell affix file
3529
CREATETEXT SEARCH DICTIONARY shared_hunspell (
3630
Template=shared_ispell,
@@ -55,13 +49,10 @@ SELECT ts_lexize('shared_hunspell', 'footballklubber');
5549
SELECT ts_lexize('shared_hunspell','ballyklubber');
5650
SELECT ts_lexize('shared_hunspell','footballyklubber');
5751

58-
SELECT shared_ispell_mem_available();
59-
SELECT shared_ispell_mem_used();
60-
61-
SELECT*FROM shared_ispell_dicts();
62-
SELECT*FROM shared_ispell_stoplists();
52+
SELECT dict_name, affix_name, words, affixesFROM shared_ispell_dicts();
53+
SELECT stop_name, wordsFROM shared_ispell_stoplists();
6354

6455
SELECT shared_ispell_reset();
6556

66-
SELECTshared_ispell_mem_available();
67-
SELECTshared_ispell_mem_used();
57+
SELECTts_lexize('shared_ispell','skies');
58+
SELECTts_lexize('shared_hunspell','skies');

‎contrib/shared_ispell/src/shared_ispell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ init_shared_dict(DictInfo *info, char *dictFile, char *affFile, char *stopFile)
342342
/* check available space in shared segment */
343343
size=sizeIspellDict(dict,dictFile,affFile);
344344
if (size>segment_info->available)
345-
elog(ERROR,"shared dictionary %s.dict / %s.affix needs %d B, only %ld B available",
345+
elog(ERROR,"shared dictionary %s.dict / %s.affix needs %d B, only %zd B available",
346346
dictFile,affFile,size,segment_info->available);
347347

348348
/* fine, there's enough space - copy the dictionary */
@@ -377,7 +377,7 @@ init_shared_dict(DictInfo *info, char *dictFile, char *affFile, char *stopFile)
377377

378378
size=sizeStopList(&stoplist,stopFile);
379379
if (size>segment_info->available)
380-
elog(ERROR,"shared stoplist %s.stop needs %d B, only %ld B available",
380+
elog(ERROR,"shared stoplist %s.stop needs %d B, only %zd B available",
381381
stopFile,size,segment_info->available);
382382

383383
/* fine, there's enough space - copy the stoplist */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp