mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Improve support of multibyte encoding:
- tsvector_(in|out) - tsquery_(in|out) - to_tsvector - to_tsquery, plainto_tsquery - 'simple' dictionary
This commit is contained in:
@ -15,7 +15,6 @@
|
||||
|
||||
#include "utils/pg_locale.h"
|
||||
|
||||
#include <ctype.h> /* tolower */
|
||||
#include "tsvector.h"
|
||||
#include "query.h"
|
||||
#include "ts_cfg.h"
|
||||
@ -76,17 +75,21 @@ setweight(PG_FUNCTION_ARGS)
|
||||
WordEntryPos *p;
|
||||
int w = 0;
|
||||
|
||||
switch (tolower(cw))
|
||||
switch (cw)
|
||||
{
|
||||
case 'A':
|
||||
case 'a':
|
||||
w = 3;
|
||||
break;
|
||||
case 'B':
|
||||
case 'b':
|
||||
w = 2;
|
||||
break;
|
||||
case 'C':
|
||||
case 'c':
|
||||
w = 1;
|
||||
break;
|
||||
case 'D':
|
||||
case 'd':
|
||||
w = 0;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user