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

Commita44564b

Browse files
committed
Fix a case of string building.
1 parent5e11e73 commita44564b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

‎src/backend/catalog/dependency.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.81 2008/10/04 21:56:52 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/dependency.c,v 1.82 2008/11/10 21:49:16 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2094,9 +2094,13 @@ getObjectDescription(const ObjectAddress *object)
20942094

20952095
if (OidIsValid(con->conrelid))
20962096
{
2097-
appendStringInfo(&buffer,_("constraint %s on "),
2098-
NameStr(con->conname));
2099-
getRelationDescription(&buffer,con->conrelid);
2097+
StringInfoDatarel;
2098+
2099+
initStringInfo(&rel);
2100+
getRelationDescription(&rel,con->conrelid);
2101+
appendStringInfo(&buffer,_("constraint %s on %s"),
2102+
NameStr(con->conname),rel.data);
2103+
pfree(rel.data);
21002104
}
21012105
else
21022106
{

‎src/backend/utils/adt/tsvector_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.16 2008/05/16 16:31:01 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.17 2008/11/10 21:49:16 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1348,7 +1348,7 @@ tsvector_update_trigger(PG_FUNCTION_ARGS, bool config_column)
13481348
if (!is_text_type(SPI_gettypeid(rel->rd_att,numattr)))
13491349
ereport(ERROR,
13501350
(errcode(ERRCODE_DATATYPE_MISMATCH),
1351-
errmsg("column \"%s\" is not of character type",
1351+
errmsg("column \"%s\" is not ofacharacter type",
13521352
trigger->tgargs[i])));
13531353

13541354
datum=SPI_getbinval(rettuple,rel->rd_att,numattr,&isnull);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp