=== modified file 'src/com/mysql/jdbc/MysqlIO.java' --- src/com/mysql/jdbc/MysqlIO.java 2013-10-16 16:25:02 +0000 +++ src/com/mysql/jdbc/MysqlIO.java 2014-03-12 14:06:41 +0000 @@ -4776,13 +4776,8 @@ /* Reserve place for null-marker bytes */ int nullCount = (numFields + 9) / 8; - byte[] nullBitMask = new byte[nullCount]; - - for (int i = 0; i < nullCount; i++) { - nullBitMask[i] = binaryData.readByte(); - } - - int nullMaskPos = 0; + int nullMaskPos = binaryData.getPosition(); + binaryData.setPosition(nullMaskPos + nullCount); int bit = 4; // first two bits are reserved for future use // @@ -4791,7 +4786,7 @@ // for (int i = 0; i < numFields; i++) { - if ((nullBitMask[nullMaskPos] & bit) != 0) { + if ((binaryData.readByte(nullMaskPos) & bit) != 0) { unpackedRowData[i] = null; } else { if (resultSetConcurrency != ResultSetInternalMethods.CONCUR_UPDATABLE) { @@ -5379,4 +5374,4 @@ this.deflater = null; } } -} \ No newline at end of file +}