List:Commits« Previous MessageNext Message »
From:Monty Taylor Date:June 24 2008 2:59am
Subject:bzr commit into NDB/Bindings:trunk branch (monty:416)
View as plain text  
#At https://bazaar.launchpad.net/~ndb-bindings/ndb-bindings/trunk

  416 Monty Taylor	2008-06-23
      Added typemap to lower the column id index to match JDBC.
modified:
  java/ndbj.i

=== modified file 'java/ndbj.i'
--- a/java/ndbj.i	2008-06-10 12:37:51 +0000
+++ b/java/ndbj.i	2008-06-24 02:59:12 +0000
@@ -35,6 +35,10 @@
 %rename NdbTransaction NdbTransactionImpl;
 
 
+%typemap(in) (Uint32 anAttrId) {
+  // JDBC does column IDs 1 indexed. NDB API does them 0 indexed.
+  $1 = $input-1;
+ }
 
 
 %include "arrays_java.i"

Thread
bzr commit into NDB/Bindings:trunk branch (monty:416) Monty Taylor24 Jun