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 5024c5c commit 84f04e4Copy full SHA for 84f04e4
src/backend/nodes/nodeFuncs.c
@@ -302,14 +302,6 @@ 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
@@ -549,6 +541,9 @@ exprTypmod(const Node *expr)
549
541
break;
550
542
}
551
543
544
+ if (exprTypmod_hook)
545
+ return exprTypmod_hook(NULL, (Node *) expr);
546
+
552
547
553
548
554
0 commit comments