We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4373d0 commit 5024c5cCopy full SHA for 5024c5c
src/backend/nodes/nodeFuncs.c
@@ -302,6 +302,14 @@ exprTypmod(const Node *expr)
302
{
303
if (!expr)
304
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
313
314
switch (nodeTag(expr))
315
@@ -541,9 +549,6 @@ exprTypmod(const Node *expr)
541
549
break;
542
550
}
543
551
544
- if (exprTypmod_hook)
545
- return exprTypmod_hook(NULL, (Node *) expr);
546
-
547
552
548
553
554
0 commit comments