|
@@ -43,24 +43,6 @@ public final class MySQLShortType extends ShortType {
|
|
|
if (val instanceof Number) {
|
|
|
return ((Number) val).shortValue();
|
|
|
}
|
|
|
-// if (val instanceof BitSet) {
|
|
|
-// BitSet bitSet = (BitSet) val;
|
|
|
-// byte[] bytes = bitSet.toByteArray();
|
|
|
-// if (bytes.length > 0) {
|
|
|
-// return (short) bytes[0];
|
|
|
-// }
|
|
|
-// return 0;
|
|
|
-// }
|
|
|
-// if (val instanceof Boolean) {
|
|
|
-// Boolean b = (Boolean) val;
|
|
|
-// return (short) (b ? 1 : 0);
|
|
|
-// }
|
|
|
-// if (val instanceof byte[]) {
|
|
|
-// byte[] bytes = (byte[]) val;
|
|
|
-// if (bytes.length > 1) {
|
|
|
-// return (short) bytes[1];
|
|
|
-// }
|
|
|
-// }
|
|
|
return throwUnsupportedException(val, field);
|
|
|
}
|
|
|
|