[Liblas-commits] hg-main-tree: execute needs to be inside try/except

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Apr 4 16:17:26 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f32038531bdc
changeset: 496:f32038531bdc
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Apr 04 15:17:16 2011 -0500
description:
execute needs to be inside try/except

diffstat:

 src/drivers/oci/Writer.cpp |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 14d777a4d0be -r f32038531bdc src/drivers/oci/Writer.cpp
--- a/src/drivers/oci/Writer.cpp	Mon Apr 04 08:04:16 2011 -0500
+++ b/src/drivers/oci/Writer.cpp	Mon Apr 04 15:17:16 2011 -0500
@@ -242,10 +242,7 @@
     // Because of OCIGDALErrorHandler, this is going to throw if there is a 
     // problem.  When it does, the statement should go out of scope and 
     // be destroyed without leaking.
-    statement->Define(szTable);
-
-    statement->Execute();
-    
+    statement->Define(szTable);    
     
     try {
         statement->Execute();


More information about the Liblas-commits mailing list