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

Commit1f82f1d

Browse files
committed
overwriting a large object now works
1 parent165b830 commit1f82f1d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

‎src/test/examples/testlo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.11 1999/05/10 00:46:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.12 1999/05/20 09:30:36 ishii Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -235,15 +235,15 @@ main(int argc, char **argv)
235235
lobjOid=lo_import(conn,in_filename);
236236
if (lobjOid==0)
237237
fprintf(stderr,"%s\n",PQerrorMessage(conn));
238-
/*
238+
239239
printf("\tas large object %u.\n",lobjOid);
240240

241241
printf("picking out bytes 1000-2000 of the large object\n");
242242
pickout(conn,lobjOid,1000,1000);
243243

244244
printf("overwriting bytes 1000-2000 of the large object with X's\n");
245245
overwrite(conn,lobjOid,1000,1000);
246-
*/
246+
247247

248248
printf("exporting large object to file \"%s\" ...\n",out_filename);
249249
/* exportFile(conn, lobjOid, out_filename); */

‎src/test/examples/testlo2.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.10 1999/05/10 00:46:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.11 1999/05/20 09:30:36 ishii Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -230,15 +230,14 @@ main(int argc, char **argv)
230230
printf("importing file \"%s\" ...\n",in_filename);
231231
/* lobjOid = importFile(conn, in_filename); */
232232
lobjOid=lo_import(conn,in_filename);
233-
/*
233+
234234
printf("\tas large object %u.\n",lobjOid);
235235

236236
printf("picking out bytes 1000-2000 of the large object\n");
237237
pickout(conn,lobjOid,1000,1000);
238238

239239
printf("overwriting bytes 1000-2000 of the large object with X's\n");
240240
overwrite(conn,lobjOid,1000,1000);
241-
*/
242241

243242
printf("exporting large object to file \"%s\" ...\n",out_filename);
244243
/* exportFile(conn, lobjOid, out_filename); */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp