Skip to content

Commit 09a4bf9

Browse files
committed
Add function rettype for default values
Signed-off-by: Bilal Kahraman <[email protected]>
1 parent 6733da6 commit 09a4bf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/catalog/heap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#include "parser/parse_collate.h"
6767
#include "parser/parse_expr.h"
6868
#include "parser/parse_relation.h"
69+
#include "parser/parse_target.h"
6970
#include "parser/parsetree.h"
7071
#include "partitioning/partdesc.h"
7172
#include "pgstat.h"
@@ -2996,6 +2997,9 @@ cookDefault(ParseState *pstate,
29962997
format_type_be(atttypid),
29972998
format_type_be(type_id)),
29982999
errhint("You will need to rewrite or cast the expression.")));
3000+
3001+
if (handle_type_and_collation_hook)
3002+
handle_type_and_collation_hook(expr, atttypid, InvalidOid);
29993003
}
30003004

30013005
/*

0 commit comments

Comments
 (0)