mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Remove unportable // comments.
This commit is contained in:
parent
b29c557e0f
commit
aeea73d4ec
@ -321,11 +321,13 @@ timetravel(PG_FUNCTION_ARGS)
|
|||||||
if(!(tupdesc->attrs[i - 1]->attisdropped)) /* skip dropped columns */
|
if(!(tupdesc->attrs[i - 1]->attisdropped)) /* skip dropped columns */
|
||||||
snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d%s",
|
snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d%s",
|
||||||
i, (i < natts) ? ", " : ")" );
|
i, (i < natts) ? ", " : ")" );
|
||||||
// snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s",
|
#if 0
|
||||||
// i, ctypes[i-1], (i < natts) ? ", " : ")" );
|
snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s",
|
||||||
|
i, ctypes[i-1], (i < natts) ? ", " : ")" );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// elog(NOTICE, "timetravel (%s) update: sql: %s", relname, sql);
|
elog(DEBUG4, "timetravel (%s) update: sql: %s", relname, sql);
|
||||||
|
|
||||||
/* Prepare plan for query */
|
/* Prepare plan for query */
|
||||||
pplan = SPI_prepare(sql, natts, ctypes);
|
pplan = SPI_prepare(sql, natts, ctypes);
|
||||||
@ -395,10 +397,9 @@ timetravel(PG_FUNCTION_ARGS)
|
|||||||
* SPI_copytuple allocates tmptuple in upper executor context -
|
* SPI_copytuple allocates tmptuple in upper executor context -
|
||||||
* have to free allocation using SPI_pfree
|
* have to free allocation using SPI_pfree
|
||||||
*/
|
*/
|
||||||
// SPI_pfree(tmptuple);
|
/* SPI_pfree(tmptuple); */
|
||||||
}
|
}
|
||||||
else
|
else /* DELETE case */
|
||||||
/* DELETE */
|
|
||||||
rettuple = trigtuple;
|
rettuple = trigtuple;
|
||||||
|
|
||||||
SPI_finish(); /* don't forget say Bye to SPI mgr */
|
SPI_finish(); /* don't forget say Bye to SPI mgr */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user