List:Internals« Previous MessageNext Message »
From:mmatthews Date:August 18 2005 7:05pm
Subject:Connector/J commit: r4097 - branches/branch_3_1/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_3_1/connector-j/src/com/mysql/jdbc/ResultSet.java
Log:
Support BINARY and VARBINARY types in getBytes() with server-side prepared statements.

Modified: branches/branch_3_1/connector-j/src/com/mysql/jdbc/ResultSet.java
===================================================================
--- branches/branch_3_1/connector-j/src/com/mysql/jdbc/ResultSet.java	2005-08-18 18:56:51 UTC (rev 4096)
+++ branches/branch_3_1/connector-j/src/com/mysql/jdbc/ResultSet.java	2005-08-18 19:05:31 UTC (rev 4097)
@@ -3084,7 +3084,9 @@
 			return (byte[]) this.thisRow[columnIndex - 1];
 
 		default:
-			if (field.getSQLType() == Types.VARBINARY) {
+			int sqlType = field.getSQLType();
+		
+			if (sqlType == Types.VARBINARY || sqlType == Types.BINARY) {
 				return (byte[]) this.thisRow[columnIndex - 1];
 			}
 		

Thread
Connector/J commit: r4097 - branches/branch_3_1/connector-j/src/com/mysql/jdbcmmatthews18 Aug