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

Commitaeea73d

Browse files
committed
Remove unportable // comments.
1 parentb29c557 commitaeea73d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎contrib/spi/timetravel.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,13 @@ timetravel(PG_FUNCTION_ARGS)
321321
if(!(tupdesc->attrs[i-1]->attisdropped))/* skip dropped columns */
322322
snprintf(sql+strlen(sql),sizeof(sql)-strlen(sql),"$%d%s",
323323
i, (i<natts) ?", " :")" );
324-
// snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), "$%d /* %d */ %s",
325-
//i, ctypes[i-1], (i < natts) ? ", " : ")" );
324+
#if0
325+
snprintf(sql+strlen(sql),sizeof(sql)-strlen(sql),"$%d /* %d */ %s",
326+
i,ctypes[i-1], (i<natts) ?", " :")" );
327+
#endif
326328
}
327329

328-
//elog(NOTICE, "timetravel (%s) update: sql: %s", relname, sql);
330+
elog(DEBUG4,"timetravel (%s) update: sql: %s",relname,sql);
329331

330332
/* Prepare plan for query */
331333
pplan=SPI_prepare(sql,natts,ctypes);
@@ -395,10 +397,9 @@ timetravel(PG_FUNCTION_ARGS)
395397
* SPI_copytuple allocates tmptuple in upper executor context -
396398
* have to free allocation using SPI_pfree
397399
*/
398-
//SPI_pfree(tmptuple);
400+
/*SPI_pfree(tmptuple); */
399401
}
400-
else
401-
/* DELETE */
402+
else/* DELETE case */
402403
rettuple=trigtuple;
403404

404405
SPI_finish();/* don't forget say Bye to SPI mgr */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp