Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1d3c04

Browse files
author
Thomas G. Lockhart
committed
Fix up error messages.
1 parent2d2562e commitc1d3c04

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

‎src/backend/parser/catalog_utils.c

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.26 1997/09/12 04:07:56 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.27 1997/09/13 03:11:51 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -804,7 +804,7 @@ varattno(Relation rd, char *a)
804804
}
805805
}
806806

807-
elog(WARN,"Relation %s does not have attribute %s\n",
807+
elog(WARN,"Relation %s does not have attribute %s",
808808
RelationGetRelationName(rd),a);
809809
return (-1);
810810
}
@@ -872,7 +872,7 @@ getAttrName(Relation rd, int attrno)
872872
return (name);
873873
}
874874
}
875-
elog(WARN,"Illegal attr no %d for relation %s\n",
875+
elog(WARN,"Illegal attr no %d for relation %s",
876876
attrno,RelationGetRelationName(rd));
877877
}
878878
elseif (attrno >=1&&attrno <=RelationGetNumberOfAttributes(rd))
@@ -882,7 +882,7 @@ getAttrName(Relation rd, int attrno)
882882
}
883883
else
884884
{
885-
elog(WARN,"Illegal attr no %d for relation %s\n",
885+
elog(WARN,"Illegal attr no %d for relation %s",
886886
attrno,RelationGetRelationName(rd));
887887
}
888888

@@ -945,7 +945,7 @@ GetArrayElementType(Oid typearray)
945945
0,0,0);
946946

947947
if (!HeapTupleIsValid(type_tuple))
948-
elog(WARN,"GetArrayElementType: Cache lookup failed for type %d\n",
948+
elog(WARN,"GetArrayElementType: Cache lookup failed for type %d",
949949
typearray);
950950

951951
/* get the array type struct from the type tuple */
@@ -1518,9 +1518,7 @@ typeid_get_retinfunc(Oid type_id)
15181518
ObjectIdGetDatum(type_id),
15191519
0,0,0);
15201520
if (!HeapTupleIsValid(typeTuple))
1521-
elog(WARN,
1522-
"typeid_get_retinfunc: Invalid type - oid = %u",
1523-
type_id);
1521+
elog(WARN,"typeid_get_retinfunc: Invalid type - oid = %u",type_id);
15241522

15251523
type= (TypeTupleForm)GETSTRUCT(typeTuple);
15261524
infunc=type->typinput;
@@ -1539,9 +1537,7 @@ typeid_get_retoutfunc(Oid type_id)
15391537
ObjectIdGetDatum(type_id),
15401538
0,0,0);
15411539
if (!HeapTupleIsValid(typeTuple))
1542-
elog(WARN,
1543-
"typeid_get_retoutfunc: Invalid type - oid = %u",
1544-
type_id);
1540+
elog(WARN,"typeid_get_retoutfunc: Invalid type - oid = %u",type_id);
15451541

15461542
type= (TypeTupleForm)GETSTRUCT(typeTuple);
15471543
outfunc=type->typoutput;
@@ -1559,7 +1555,7 @@ typeid_get_relid(Oid type_id)
15591555
ObjectIdGetDatum(type_id),
15601556
0,0,0);
15611557
if (!HeapTupleIsValid(typeTuple))
1562-
elog(WARN,"typeid_get_relid: Invalid type - oid = %u",type_id);
1558+
elog(WARN,"typeid_get_relid: Invalid type - oid = %u",type_id);
15631559

15641560
type= (TypeTupleForm)GETSTRUCT(typeTuple);
15651561
infunc=type->typrelid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp