Skip to content
Snippets Groups Projects
Commit 883bab77 authored by Michael Paquier's avatar Michael Paquier
Browse files

pg_sasl_prepare: Fix some typos and formatting issues in code

parent 6d2e7786
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,7 @@ new_intArrayType(int num)
 
SET_VARSIZE(r, nbytes);
ARR_NDIM(r) = 1;
r->dataoffset = 0; /* marker for no null bitmap */
r->dataoffset = 0; /* marker for no null bitmap */
ARR_ELEMTYPE(r) = INT4OID;
ARR_DIMS(r)[0] = num;
ARR_LBOUND(r)[0] = 1;
Loading
Loading
@@ -71,7 +71,7 @@ conv_compare(const void *p1, const void *p2)
}
 
/*
* Get the entry corresponding to code in the comversion table. This
* Get the entry corresponding to code in the conversion table. This
* is useful to avoid repeating the calls to bsearch everywhere.
*/
static pg_utf_decomposition *
Loading
Loading
@@ -80,7 +80,7 @@ get_code_entry(uint32 code)
pg_utf_decomposition *entry;
 
/*
* bsearch works as follows:
* bsearch() works as follows:
* - a key to check for matches.
* - a pointer pointing to the base of the conversion table.
* - number of elements in the array to look for,
Loading
Loading
@@ -224,7 +224,7 @@ pg_sasl_prepare(PG_FUNCTION_ARGS)
 
/*
* Now that the decomposition is done, apply the combining class
* for each character of the.
* for each multibyte character.
*/
for (count = 1; count < ARRNELEMS(result); count++)
{
Loading
Loading
@@ -417,7 +417,7 @@ utf8_conv_table(PG_FUNCTION_ARGS)
MemoryContext oldcontext;
int i;
 
/* check to see if caller supports us returning a tuplestore */
/* check to see if caller supports us returning a tuplestore */
if (rsinfo == NULL || !IsA(rsinfo, ReturnSetInfo))
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
Loading
Loading
@@ -451,7 +451,6 @@ utf8_conv_table(PG_FUNCTION_ARGS)
ArrayType *decomp = NULL;
int *decomp_ptr = NULL;
 
MemSet(values, 0, sizeof(values));
MemSet(nulls, 0, sizeof(nulls));
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment