mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +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:
@@ -4,7 +4,7 @@
|
||||
#define BS_DEBUG
|
||||
*/
|
||||
|
||||
|
||||
#include "ts_locale.h"
|
||||
/*
|
||||
* item in polish notation with back link
|
||||
* to left operand
|
||||
@@ -38,7 +38,7 @@ typedef struct
|
||||
#define GETQUERY(x) (ITEM*)( (char*)(x)+HDRSIZEQT )
|
||||
#define GETOPERAND(x) ( (char*)GETQUERY(x) + ((QUERYTYPE*)(x))->size * sizeof(ITEM) )
|
||||
|
||||
#define ISOPERATOR(x) ( (x)=='!' || (x)=='&' || (x)=='|' || (x)=='(' || (x)==')' )
|
||||
#define ISOPERATOR(x) ( pg_mblen(x)==1 && ( *(x)=='!' || *(x)=='&' || *(x)=='|' || *(x)=='(' || *(x)==')' ) )
|
||||
|
||||
#define END 0
|
||||
#define ERR 1
|
||||
|
Reference in New Issue
Block a user