summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii1999-05-20 09:30:36 +0000
committerTatsuo Ishii1999-05-20 09:30:36 +0000
commit1f82f1de33ebc316e325bc51a11b897d83585847 (patch)
tree32e8c4eee4d8d2d91884254b8a442e4b5350bfad
parent165b830ea5219ccaf7fad1bef65e2fe7c7b820e4 (diff)
overwriting a large object now works
-rw-r--r--src/test/examples/testlo.c6
-rw-r--r--src/test/examples/testlo2.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/test/examples/testlo.c b/src/test/examples/testlo.c
index 5f53aa7bfa2..672a78ae88e 100644
--- a/src/test/examples/testlo.c
+++ b/src/test/examples/testlo.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.11 1999/05/10 00:46:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.12 1999/05/20 09:30:36 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@@ -235,7 +235,7 @@ main(int argc, char **argv)
lobjOid = lo_import(conn, in_filename);
if (lobjOid == 0)
fprintf(stderr, "%s\n", PQerrorMessage(conn));
-/*
+
printf("\tas large object %u.\n", lobjOid);
printf("picking out bytes 1000-2000 of the large object\n");
@@ -243,7 +243,7 @@ main(int argc, char **argv)
printf("overwriting bytes 1000-2000 of the large object with X's\n");
overwrite(conn, lobjOid, 1000, 1000);
-*/
+
printf("exporting large object to file \"%s\" ...\n", out_filename);
/* exportFile(conn, lobjOid, out_filename); */
diff --git a/src/test/examples/testlo2.c b/src/test/examples/testlo2.c
index f2cc3ed0b3d..6345f2cc034 100644
--- a/src/test/examples/testlo2.c
+++ b/src/test/examples/testlo2.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.10 1999/05/10 00:46:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.11 1999/05/20 09:30:36 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@@ -230,7 +230,7 @@ main(int argc, char **argv)
printf("importing file \"%s\" ...\n", in_filename);
/* lobjOid = importFile(conn, in_filename); */
lobjOid = lo_import(conn, in_filename);
-/*
+
printf("\tas large object %u.\n", lobjOid);
printf("picking out bytes 1000-2000 of the large object\n");
@@ -238,7 +238,6 @@ main(int argc, char **argv)
printf("overwriting bytes 1000-2000 of the large object with X's\n");
overwrite(conn, lobjOid, 1000, 1000);
-*/
printf("exporting large object to file \"%s\" ...\n", out_filename);
/* exportFile(conn, lobjOid, out_filename); */