Skip to content

Commit 41d32ff

Browse files
Fixed insert in cached variables
1 parent 370ddfe commit 41d32ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pg_variables.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ variable_insert(PG_FUNCTION_ARGS)
325325

326326
/* Get cached variable */
327327
if (LastVariable == NULL ||
328-
VARSIZE_ANY_EXHDR(var_name) != strlen(getName(LastPackage)) ||
329-
strncmp(VARDATA_ANY(var_name), getName(LastPackage),
328+
VARSIZE_ANY_EXHDR(var_name) != strlen(getName(LastVariable)) ||
329+
strncmp(VARDATA_ANY(var_name), getName(LastVariable),
330330
VARSIZE_ANY_EXHDR(var_name)) != 0)
331331
{
332332
variable = createVariableInternal(package, var_name, RECORDOID,

0 commit comments

Comments
 (0)