mirror of https://github.com/citusdata/citus.git
Fix variable declaration style in MakeNextValExprForIdentity function and clean up regression test output for issue 7887
parent
ec3c899e17
commit
e34dd6b134
|
@ -1237,7 +1237,6 @@ ReorderInsertSelectTargetLists(Query *originalQuery, RangeTblEntry *insertRte,
|
||||||
Expr *
|
Expr *
|
||||||
MakeNextValExprForIdentity(Oid seq_relid)
|
MakeNextValExprForIdentity(Oid seq_relid)
|
||||||
{
|
{
|
||||||
Oid nextval_oid;
|
|
||||||
|
|
||||||
Const *seq_const = makeConst(
|
Const *seq_const = makeConst(
|
||||||
REGCLASSOID, /* type for regclass */
|
REGCLASSOID, /* type for regclass */
|
||||||
|
@ -1250,7 +1249,7 @@ MakeNextValExprForIdentity(Oid seq_relid)
|
||||||
);
|
);
|
||||||
|
|
||||||
List *func_args = list_make1(seq_const);
|
List *func_args = list_make1(seq_const);
|
||||||
nextval_oid = LookupFuncName(
|
Oid nextval_oid = LookupFuncName(
|
||||||
list_make1(makeString("nextval")),
|
list_make1(makeString("nextval")),
|
||||||
1,
|
1,
|
||||||
(Oid[]) { REGCLASSOID },
|
(Oid[]) { REGCLASSOID },
|
||||||
|
|
|
@ -106,13 +106,6 @@ ORDER BY table_name, id;
|
||||||
local2_bydefault | 5000 | yyyyy | 2
|
local2_bydefault | 5000 | yyyyy | 2
|
||||||
(8 rows)
|
(8 rows)
|
||||||
|
|
||||||
|
-- Cleanup
|
||||||
|
SET client_min_messages TO WARNING;
|
||||||
DROP SCHEMA issue_7887 CASCADE;
|
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
|
|
||||||
|
|
Loading…
Reference in New Issue