|
1 | 1 | /****************************************************************************
|
2 | 2 | * 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 $ |
4 | 4 | *
|
5 | 5 | * This file contains a trigger for Postgresql-7.x to record changes to tables
|
6 | 6 | * to a pending table for mirroring.
|
@@ -99,7 +99,7 @@ recordchange(PG_FUNCTION_ARGS)
|
99 | 99 | sprintf(fullyqualtblname,"\"%s\".\"%s\"",
|
100 | 100 | schemaname,tblname);
|
101 | 101 | #else
|
102 |
| -fullyqualtblname=SPI_palloc(strlen(tblname+3)); |
| 102 | +fullyqualtblname=SPI_palloc(strlen(tblname)+3); |
103 | 103 | sprintf(fullyqualtblname,"\"%s\"",tblname);
|
104 | 104 | #endif
|
105 | 105 | tupdesc=trigdata->tg_relation->rd_att;
|
|