Hi,

  I am attaching the patch to fix the Open issue with key *Derby-33*
having the description *Connection.setTypeMap throws unimplemented
exception with empty map*.

 This patch takes care of proper handling of the empty map condition.

 I have also updated JIRA with my comments on 18-Nov-2004.

thanks
Shreyas
Index: java/engine/org/apache/derby/impl/jdbc/EmbedConnection20.java
===================================================================
--- java/engine/org/apache/derby/impl/jdbc/EmbedConnection20.java       
(revision 105806)
+++ java/engine/org/apache/derby/impl/jdbc/EmbedConnection20.java       
(working copy)
@@ -109,7 +109,10 @@
      * @exception SQLException Feature not implemented for now.
         */
     public void setTypeMap(java.util.Map map) throws SQLException {
-               throw Util.notImplemented();
+        if((map != null)) {
+             if(!(map.isEmpty()))
+                 throw Util.notImplemented();
+        }
     }
 
        /*

Reply via email to