mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -2690,7 +2690,7 @@ compile_plperl_function(Oid fn_oid, bool is_trigger, bool is_event_trigger)
|
||||
MemoryContext oldcxt;
|
||||
|
||||
protrftypes_datum = SysCacheGetAttr(PROCOID, procTup,
|
||||
Anum_pg_proc_protrftypes, &isnull);
|
||||
Anum_pg_proc_protrftypes, &isnull);
|
||||
oldcxt = MemoryContextSwitchTo(TopMemoryContext);
|
||||
prodesc->trftypes = isnull ? NIL : oid_array_to_list(protrftypes_datum);
|
||||
MemoryContextSwitchTo(oldcxt);
|
||||
|
@@ -172,8 +172,9 @@ PLy_procedure_create(HeapTuple procTup, Oid fn_oid, bool is_trigger)
|
||||
{
|
||||
MemoryContext oldcxt;
|
||||
|
||||
Datum protrftypes_datum = SysCacheGetAttr(PROCOID, procTup,
|
||||
Anum_pg_proc_protrftypes, &isnull);
|
||||
Datum protrftypes_datum = SysCacheGetAttr(PROCOID, procTup,
|
||||
Anum_pg_proc_protrftypes, &isnull);
|
||||
|
||||
oldcxt = MemoryContextSwitchTo(TopMemoryContext);
|
||||
proc->trftypes = isnull ? NIL : oid_array_to_list(protrftypes_datum);
|
||||
MemoryContextSwitchTo(oldcxt);
|
||||
|
@@ -401,18 +401,18 @@ PLy_output_datum_func2(PLyObToDatum *arg, HeapTuple typeTup, Oid langid, List *t
|
||||
arg->func = PLyObject_ToComposite;
|
||||
}
|
||||
else
|
||||
switch (base_type)
|
||||
{
|
||||
case BOOLOID:
|
||||
arg->func = PLyObject_ToBool;
|
||||
break;
|
||||
case BYTEAOID:
|
||||
arg->func = PLyObject_ToBytea;
|
||||
break;
|
||||
default:
|
||||
arg->func = PLyObject_ToDatum;
|
||||
break;
|
||||
}
|
||||
switch (base_type)
|
||||
{
|
||||
case BOOLOID:
|
||||
arg->func = PLyObject_ToBool;
|
||||
break;
|
||||
case BYTEAOID:
|
||||
arg->func = PLyObject_ToBytea;
|
||||
break;
|
||||
default:
|
||||
arg->func = PLyObject_ToDatum;
|
||||
break;
|
||||
}
|
||||
|
||||
if (element_type)
|
||||
{
|
||||
@@ -464,39 +464,39 @@ PLy_input_datum_func2(PLyDatumToOb *arg, Oid typeOid, HeapTuple typeTup, Oid lan
|
||||
perm_fmgr_info(funcid, &arg->typtransform);
|
||||
}
|
||||
else
|
||||
switch (base_type)
|
||||
{
|
||||
case BOOLOID:
|
||||
arg->func = PLyBool_FromBool;
|
||||
break;
|
||||
case FLOAT4OID:
|
||||
arg->func = PLyFloat_FromFloat4;
|
||||
break;
|
||||
case FLOAT8OID:
|
||||
arg->func = PLyFloat_FromFloat8;
|
||||
break;
|
||||
case NUMERICOID:
|
||||
arg->func = PLyDecimal_FromNumeric;
|
||||
break;
|
||||
case INT2OID:
|
||||
arg->func = PLyInt_FromInt16;
|
||||
break;
|
||||
case INT4OID:
|
||||
arg->func = PLyInt_FromInt32;
|
||||
break;
|
||||
case INT8OID:
|
||||
arg->func = PLyLong_FromInt64;
|
||||
break;
|
||||
case OIDOID:
|
||||
arg->func = PLyLong_FromOid;
|
||||
break;
|
||||
case BYTEAOID:
|
||||
arg->func = PLyBytes_FromBytea;
|
||||
break;
|
||||
default:
|
||||
arg->func = PLyString_FromDatum;
|
||||
break;
|
||||
}
|
||||
switch (base_type)
|
||||
{
|
||||
case BOOLOID:
|
||||
arg->func = PLyBool_FromBool;
|
||||
break;
|
||||
case FLOAT4OID:
|
||||
arg->func = PLyFloat_FromFloat4;
|
||||
break;
|
||||
case FLOAT8OID:
|
||||
arg->func = PLyFloat_FromFloat8;
|
||||
break;
|
||||
case NUMERICOID:
|
||||
arg->func = PLyDecimal_FromNumeric;
|
||||
break;
|
||||
case INT2OID:
|
||||
arg->func = PLyInt_FromInt16;
|
||||
break;
|
||||
case INT4OID:
|
||||
arg->func = PLyInt_FromInt32;
|
||||
break;
|
||||
case INT8OID:
|
||||
arg->func = PLyLong_FromInt64;
|
||||
break;
|
||||
case OIDOID:
|
||||
arg->func = PLyLong_FromOid;
|
||||
break;
|
||||
case BYTEAOID:
|
||||
arg->func = PLyBytes_FromBytea;
|
||||
break;
|
||||
default:
|
||||
arg->func = PLyString_FromDatum;
|
||||
break;
|
||||
}
|
||||
|
||||
if (element_type)
|
||||
{
|
||||
|
Reference in New Issue
Block a user