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

This commit is contained in:
Bruce Momjian 2000-04-25 21:00:29 +00:00
parent 02ee04180d
commit a0551e8afa
7 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,7 @@ int main()
// End the transaction // End the transaction
data.Exec("END"); data.Exec("END");
return 0;
} }

View File

@ -53,4 +53,5 @@ int main()
// close the portal // close the portal
data.Exec("CLOSE myportal"); data.Exec("CLOSE myportal");
return 0;
} }

View File

@ -53,4 +53,5 @@ int main()
cout << setiosflags(ios::right) << setw(15) << cData.GetValue(i,j); cout << setiosflags(ios::right) << setw(15) << cData.GetValue(i,j);
cout << endl; cout << endl;
} }
return 0;
} }

View File

@ -55,4 +55,5 @@ main()
break; break;
} }
} }
return 0;
} }

View File

@ -99,4 +99,5 @@ main()
// Deallocate memory allocated for the Polygon structure // Deallocate memory allocated for the Polygon structure
free(pval); free(pval);
} }
return 0;
} }

View File

@ -56,4 +56,5 @@ main()
// Drop the test table // Drop the test table
data.Exec("DROP TABLE foo"); data.Exec("DROP TABLE foo");
return 0;
} }

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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; cout << "Exporting large object to file \"" << out_filename << "\"..." << endl;
object.Export(out_filename); object.Export(out_filename);
object.Exec("END"); // WHY DOES IT CORE DUMP HERE ??? object.Exec("END"); // WHY DOES IT CORE DUMP HERE ???
return 0;
} }