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

Commit900fa3d

Browse files
committed
The attatched patch fixes a memory error with contrib/dbmirror/pending.c
when running it with older(Pre 7.3.x) versions of Postgresql.Backpatched to 7.3.X.Steven Singer
1 parent31ce455 commit900fa3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/dbmirror/pending.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
* pending.c
3-
* $Id: pending.c,v 1.10 2002/11/26 03:08:00 momjian Exp $
3+
* $Id: pending.c,v 1.11 2003/03/20 03:58:13 momjian Exp $
44
*
55
* This file contains a trigger for Postgresql-7.x to record changes to tables
66
* to a pending table for mirroring.
@@ -99,7 +99,7 @@ recordchange(PG_FUNCTION_ARGS)
9999
sprintf(fullyqualtblname,"\"%s\".\"%s\"",
100100
schemaname,tblname);
101101
#else
102-
fullyqualtblname=SPI_palloc(strlen(tblname+3));
102+
fullyqualtblname=SPI_palloc(strlen(tblname)+3);
103103
sprintf(fullyqualtblname,"\"%s\"",tblname);
104104
#endif
105105
tupdesc=trigdata->tg_relation->rd_att;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp