Commit a0551e8a authored by Bruce Momjian's avatar Bruce Momjian

Make c++ examples return 0 from main().

parent 02ee0418
......@@ -62,6 +62,7 @@ int main()
// End the transaction
data.Exec("END");
return 0;
}
......@@ -53,4 +53,5 @@ int main()
// close the portal
data.Exec("CLOSE myportal");
return 0;
}
......@@ -53,4 +53,5 @@ int main()
cout << setiosflags(ios::right) << setw(15) << cData.GetValue(i,j);
cout << endl;
}
return 0;
}
......@@ -55,4 +55,5 @@ main()
break;
}
}
return 0;
}
......@@ -99,4 +99,5 @@ main()
// Deallocate memory allocated for the Polygon structure
free(pval);
}
return 0;
}
......@@ -56,4 +56,5 @@ main()
// Drop the test table
data.Exec("DROP TABLE foo");
return 0;
}
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.6 2000/04/22 22:15:48 tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.7 2000/04/25 21:00:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -46,4 +46,5 @@ int main(int argc, char **argv)
cout << "Exporting large object to file \"" << out_filename << "\"..." << endl;
object.Export(out_filename);
object.Exec("END"); // WHY DOES IT CORE DUMP HERE ???
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment