解决tsdb插入数据崩溃的问题

This commit is contained in:
08ming
2024-11-14 18:54:31 +08:00
parent a99f41d753
commit f4e3fa0705

View File

@ -13079,7 +13079,9 @@ parse_datatype(const char *string, int location)
datatype = plpgsql_build_datatype(type_id, typmod,
u_sess->plsql_cxt.curr_compile_context->plpgsql_curr_compile->fn_input_collation, typeDependExtend);
}
datatype->defaultvalues = get_default_plpgsql_expr_from_typeoid(type_id, &expr_len);
if (!(u_sess->hook_cxt.forTsdbHook && DB_IS_CMPT(PG_FORMAT))) {
datatype->defaultvalues = get_default_plpgsql_expr_from_typeoid(type_id, &expr_len);
}
return datatype;
}