77 *
88 *
99 * IDENTIFICATION
10- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.5 1999/12/03 18:28:32 momjian Exp $
10+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.6 2000/04/22 22:15:48 tgl Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313*/
@@ -19,22 +19,22 @@ int main(int argc, char **argv)
1919{
2020// Check if the program was invoked correctly; if not, signal error
2121if (argc <4 || argc >5 ) {
22- cerr <<" Usage:" << argv[0 ] <<" database_name in_filename out_filename [oid]" << endl;
22+ cerr <<" Usage:" << argv[0 ] <<" conninfo_str in_filename out_filename [oid]" << endl;
2323exit (1 );
2424 }
2525
2626// Get the arguments passed to the program
27- char *database = argv[1 ];
27+ char *conninfo = argv[1 ];
2828char * in_filename = argv[2 ];
2929char * out_filename = argv[3 ];
3030
3131// Set up the connection and create a large object
3232int lobjId = ( argc ==4 ?0 :atoi (argv[4 ]) );
33- PgLargeObjectobject (lobjId,database );
33+ PgLargeObjectobject (lobjId,conninfo );
3434
3535// check to see that the backend connection was successfully made
3636if ( object.ConnectionBad () ) {
37- cerr <<" Connectionto database '" <<database <<" ' failed." << endl
37+ cerr <<" Connectionwith conninfo '" <<conninfo <<" ' failed." << endl
3838 << object.ErrorMessage ();
3939exit (1 );
4040 }