We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ce455 commit 900fa3dCopy full SHA for 900fa3d
contrib/dbmirror/pending.c
@@ -1,6 +1,6 @@
1
/****************************************************************************
2
* pending.c
3
- * $Id: pending.c,v 1.10 2002/11/26 03:08:00 momjian Exp $
+ * $Id: pending.c,v 1.11 2003/03/20 03:58:13 momjian Exp $
4
*
5
* This file contains a trigger for Postgresql-7.x to record changes to tables
6
* to a pending table for mirroring.
@@ -99,7 +99,7 @@ recordchange(PG_FUNCTION_ARGS)
99
sprintf(fullyqualtblname,"\"%s\".\"%s\"",
100
schemaname,tblname);
101
#else
102
- fullyqualtblname = SPI_palloc(strlen(tblname + 3));
+ fullyqualtblname = SPI_palloc(strlen(tblname) + 3);
103
sprintf(fullyqualtblname,"\"%s\"",tblname);
104
#endif
105
tupdesc = trigdata->tg_relation->rd_att;
0 commit comments