List:Commits« Previous MessageNext Message »
From:Craig L Russell Date:May 24 2011 8:42pm
Subject:bzr commit into mysql-5.1-telco-7.1 branch (Craig.Russell:4222)
View as plain text  
#At file:///Users/clr/ndb/bzr-repo/mysql-5.1-telco-7.1/ based on revid:jonas@stripped

 4222 Craig L Russell	2011-05-24
      Fix storage of tinyint and year for big endian

    modified:
      storage/ndb/clusterj/clusterj-tie/src/main/java/com/mysql/clusterj/tie/Utility.java
=== modified file 'storage/ndb/clusterj/clusterj-tie/src/main/java/com/mysql/clusterj/tie/Utility.java'
--- a/storage/ndb/clusterj/clusterj-tie/src/main/java/com/mysql/clusterj/tie/Utility.java	2011-05-12 00:09:43 +0000
+++ b/storage/ndb/clusterj/clusterj-tie/src/main/java/com/mysql/clusterj/tie/Utility.java	2011-05-24 20:42:28 +0000
@@ -419,9 +419,11 @@ public class Utility {
             switch (storeColumn.getType()) {
                 case Bit:
                     // bit fields are always stored in an int32
+                    return value & ooooooff;
                 case Tinyint:
                 case Year:
-                    return value & ooooooff;
+                    // other byte values are stored in the high byte of an int
+                    return value << 24;
                 default:
                     throw new ClusterJUserException(local.message(
                             "ERR_Unsupported_Mapping", storeColumn.getType(), "byte"));


Attachment: [text/bzr-bundle] bzr/craig.russell@oracle.com-20110524204228-p09ndn13cksg35wp.bundle
Thread
bzr commit into mysql-5.1-telco-7.1 branch (Craig.Russell:4222)Craig L Russell24 May