Fix variable declaration style in MakeNextValExprForIdentity function and clean up regression test output for issue 7887

m3hm3t/issue_7887
Mehmet Yilmaz 2025-03-05 10:42:46 +00:00
parent ec3c899e17
commit e34dd6b134
2 changed files with 3 additions and 11 deletions

View File

@ -1237,7 +1237,6 @@ ReorderInsertSelectTargetLists(Query *originalQuery, RangeTblEntry *insertRte,
Expr *
MakeNextValExprForIdentity(Oid seq_relid)
{
Oid nextval_oid;
Const *seq_const = makeConst(
REGCLASSOID, /* type for regclass */
@ -1250,7 +1249,7 @@ MakeNextValExprForIdentity(Oid seq_relid)
);
List *func_args = list_make1(seq_const);
nextval_oid = LookupFuncName(
Oid nextval_oid = LookupFuncName(
list_make1(makeString("nextval")),
1,
(Oid[]) { REGCLASSOID },

View File

@ -106,13 +106,6 @@ ORDER BY table_name, id;
local2_bydefault | 5000 | yyyyy | 2
(8 rows)
-- Cleanup
SET client_min_messages TO WARNING;
DROP SCHEMA issue_7887 CASCADE;
NOTICE: drop cascades to 8 other objects
DETAIL: drop cascades to table local1_102010
drop cascades to table reference1
drop cascades to table reference1_102008
drop cascades to table local2_102009
drop cascades to table local2
drop cascades to table local1
drop cascades to table local2_bydefault_102011
drop cascades to table local2_bydefault