Make c++ examples return 0 from main().
This commit is contained in:
parent
02ee04180d
commit
a0551e8afa
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user