List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:November 3 2007 2:53pm
Subject:Rev 210: Added references to new Ndb Helper methods. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3

------------------------------------------------------------
revno: 210
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: telco-6.3
timestamp: Sat 2007-11-03 09:53:09 -0500
message:
  Added references to new Ndb Helper methods.
modified:
  swig/NdbOperation.i            ndboperation.i-20070228021421-qkr4cbpxymyqdrf3-3
  swig/NdbScanFilter.i           ndbscanfilter.i-20070521223726-lvjwmtu5b6uvgsft-1
  swig/NdbTransaction.i          ndbtransaction.i-20070227184716-ecjyhh3jgvmye4de-7
  testndbapi/Makefile.am         makefile.am-20071026235931-jssnmc2smymhxj0f-1
  testndbapi/testchars.cpp      
svn-v2:1@5fca6d9a-db22-0410-b55c-899b0a28da89-trunk-testndbapi%2ftestchars.cpp
=== modified file 'swig/NdbOperation.i'
--- a/swig/NdbOperation.i	2007-10-29 12:32:26 +0000
+++ b/swig/NdbOperation.i	2007-11-03 14:53:09 +0000
@@ -213,6 +213,8 @@
       }
   }
 
+  NdbTransaction* getNdbTransaction(); 
+
   virtual NdbBlob* getBlobHandle(const char* anAttrName);
   virtual NdbBlob* getBlobHandle(Uint32 anAttrId);
 

=== modified file 'swig/NdbScanFilter.i'
--- a/swig/NdbScanFilter.i	2007-10-23 08:04:58 +0000
+++ b/swig/NdbScanFilter.i	2007-11-03 14:53:09 +0000
@@ -83,6 +83,14 @@
 
   %ndbexception("NdbApiException") { 
     $action
+      if (result==null) { 
+	NDB_exception(NdbApiException,"ScanFilter error" );
+      }
+  }
+  NdbOperation * getNdbOperation();
+
+  %ndbexception("NdbApiException") { 
+    $action
       if (result==-1) { 
 	NDB_exception(NdbApiException,"ScanFilter error" );
       }

=== modified file 'swig/NdbTransaction.i'
--- a/swig/NdbTransaction.i	2007-10-31 15:04:37 +0000
+++ b/swig/NdbTransaction.i	2007-11-03 14:53:09 +0000
@@ -34,6 +34,8 @@
         NDB_exception(NdbApiException,err.message);
       }
   }
+  Ndb* getNdb(); 
+ 
   NdbOperation* getNdbOperation(const class NdbDictTable* aTable);
   NdbOperation* getNdbOperation(const char* aTableName);
 

=== modified file 'testndbapi/Makefile.am'
--- a/testndbapi/Makefile.am	2007-10-26 23:59:50 +0000
+++ b/testndbapi/Makefile.am	2007-11-03 14:53:09 +0000
@@ -2,11 +2,12 @@
                 testchars \
                 teststrins \
                 ndbfoo \
-                testdateins
+                testdateins \
+		QuickJavaCPPTest
 
 ndbapi_simple_index_SOURCES = ndbapi_simple_index.cpp
 testchars_SOURCES = testchars.cpp
 teststrins_SOURCES = teststrins.cpp
-ndbfoo_SOURCES = ndbfoo
-testdateins_SOURCES = testdateins
-
+ndbfoo_SOURCES = ndbfoo.cpp
+testdateins_SOURCES = testdateins.cpp
+QuickJavaCPPTest_SOURCES = QuickJavaCPPTest.cpp

=== modified file 'testndbapi/testchars.cpp'
--- a/testndbapi/testchars.cpp	2006-11-22 20:17:43 +0000
+++ b/testndbapi/testchars.cpp	2007-11-03 14:53:09 +0000
@@ -118,7 +118,7 @@
   const NdbDictionary::Dictionary* myDict= myNdb->getDictionary();
   const NdbDictionary::Table *myTable= myDict->getTable("MYTABLENAME");
   const NdbDictionary::Column *myCol = myTable->getColumn("ATTR1");
-  const Uint32 sizeInBytes = myCol->m_attrSize * myCol->m_arraySize;
+  //const Uint32 sizeInBytes = myCol->m_attrSize * myCol->m_arraySize;
   if (myTable == NULL)
     APIERROR(myDict->getNdbError());
 
@@ -223,8 +223,8 @@
       NdbRecAttr *myRecAttr= myOper->getValue("ATTR2", NULL);
       if(myTrans->execute( NdbTransaction::Commit ) == -1)
 	  APIERROR(myTrans->getNdbError());
-      int len = myRecAttr->arraySize();
-      std::cout << "len: " << len << std::endl;
+      //int len = myRecAttr->arraySize();
+      //std::cout << "len: " << len << std::endl;
       char *strval = myRecAttr->aRef();
       foo=myRecAttr->char_value();
 	std::cout << "foo:" << foo << std::endl;

Thread
Rev 210: Added references to new Ndb Helper methods. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3Monty Taylor4 Nov