Skip to content

Commit 84f04e4

Browse files
author
Tanya Gupta
committed
declare handling
Signed-off-by: Tanya Gupta <[email protected]>
1 parent 5024c5c commit 84f04e4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/backend/nodes/nodeFuncs.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,6 @@ exprTypmod(const Node *expr)
302302
{
303303
if (!expr)
304304
return -1;
305-
if (exprTypmod_hook)
306-
{
307-
int32 typmod = exprTypmod_hook(NULL, (Node *) expr);
308-
if (typmod != -1)
309-
{
310-
return typmod;
311-
}
312-
}
313305

314306
switch (nodeTag(expr))
315307
{
@@ -549,6 +541,9 @@ exprTypmod(const Node *expr)
549541
break;
550542
}
551543

544+
if (exprTypmod_hook)
545+
return exprTypmod_hook(NULL, (Node *) expr);
546+
552547
return -1;
553548
}
554549

0 commit comments

Comments
 (0)