Fix whitespace
This commit is contained in:
parent
6c7b0388c5
commit
d8ed83cd7f
@ -114,13 +114,13 @@ tsquery_phrase_distance(PG_FUNCTION_ARGS)
|
|||||||
TSQuery b = PG_GETARG_TSQUERY_COPY(1);
|
TSQuery b = PG_GETARG_TSQUERY_COPY(1);
|
||||||
QTNode *res;
|
QTNode *res;
|
||||||
TSQuery query;
|
TSQuery query;
|
||||||
int32 distance = PG_GETARG_INT32(2);
|
int32 distance = PG_GETARG_INT32(2);
|
||||||
|
|
||||||
if (distance < 0 || distance > MAXENTRYPOS)
|
if (distance < 0 || distance > MAXENTRYPOS)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||||
errmsg("distance in phrase operator should be non-negative and less than %d",
|
errmsg("distance in phrase operator should be non-negative and less than %d",
|
||||||
MAXENTRYPOS)));
|
MAXENTRYPOS)));
|
||||||
if (a->size == 0)
|
if (a->size == 0)
|
||||||
{
|
{
|
||||||
PG_FREE_IF_COPY(a, 1);
|
PG_FREE_IF_COPY(a, 1);
|
||||||
|
@ -619,4 +619,3 @@ set_string_attr(PyObject *obj, char *attrname, char *str)
|
|||||||
|
|
||||||
return result != -1;
|
return result != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
autovacuum = off
|
autovacuum = off
|
||||||
old_snapshot_threshold = 0
|
old_snapshot_threshold = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user