Changeset: 34046dbfc59d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=34046dbfc59d
Modified Files:
java/src/nl/cwi/monetdb/jdbc/MonetBlob.java
Branch: Jun2010
Log Message:
Fix hex string decoding
diffs (12 lines):
diff -r f9af81c7874b -r 34046dbfc59d java/src/nl/cwi/monetdb/jdbc/MonetBlob.java
--- a/java/src/nl/cwi/monetdb/jdbc/MonetBlob.java Thu Jul 22 13:18:20
2010 +0200
+++ b/java/src/nl/cwi/monetdb/jdbc/MonetBlob.java Thu Jul 22 13:53:38
2010 +0200
@@ -39,7 +39,7 @@
int len = in.length() / 2;
buf = new byte[len];
for (int i = 0; i < len; i++)
- buf[i] = Byte.parseByte(in.substring(2 * i, (2 * i) +
2), 16);
+ buf[i] = (byte)Integer.parseInt(in.substring(2 * i, (2
* i) + 2), 16);
}
//== begin interface Blob
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list