mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Minor cleanups
This commit is contained in:
parent
7f129956e1
commit
cdfecf6e3e
@ -47,8 +47,10 @@ g_int_consistent(PG_FUNCTION_ARGS)
|
||||
|
||||
/* sort query for fast search, key is already sorted */
|
||||
CHECKARRVALID(query);
|
||||
if (ARRISVOID(query))
|
||||
if (ARRISVOID(query)) {
|
||||
pfree( query );
|
||||
PG_RETURN_BOOL(false);
|
||||
}
|
||||
PREPAREARR(query);
|
||||
|
||||
switch (strategy)
|
||||
|
@ -510,12 +510,14 @@ g_intbig_consistent(PG_FUNCTION_ARGS)
|
||||
GETSIGN(DatumGetPointer(entry->key)),
|
||||
false);
|
||||
PG_FREE_IF_COPY( query, 1 );
|
||||
return retval;
|
||||
PG_RETURN_BOOL(retval);
|
||||
}
|
||||
|
||||
CHECKARRVALID(query);
|
||||
if (ARRISVOID(query))
|
||||
return FALSE;
|
||||
if (ARRISVOID(query)) {
|
||||
PG_FREE_IF_COPY( query, 1 );
|
||||
PG_RETURN_BOOL(FALSE);
|
||||
}
|
||||
|
||||
switch (strategy)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user