You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (JIRA)" <de...@db.apache.org> on 2005/07/28 16:44:18 UTC

[jira] Created: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

JDBC client and embedded drivers differ wrt API subset supported
----------------------------------------------------------------

         Key: DERBY-477
         URL: http://issues.apache.org/jira/browse/DERBY-477
     Project: Derby
        Type: Improvement
  Components: JDBC, Network Server, Network Client  
    Versions: 10.1.1.0, 10.2.0.0, 10.1.1.1    
    Reporter: Dag H. Wanvik
 Attachments: api-diffs.txt

After having noticed some differences (mail url below) in Clob and
Blob support, I did a walkthough of both drivers of things marked as
"not implemented", "not supported", etc., to see how they align.

[http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],

Below is a summary of my findings. I attach a file "api-diffs.txt"
which shows all "not implemented" methods in the interfaces I looked
at, also for those cases where the drivers are in agreement.

Caveat 1: This is all based on visual inspection of the code only.

Caveat 2: I mostly looked at the top-level API implementation code, so
there may be cases where the cut-off occurs at a lower level in the
code which I missed.

Caveat 3: The client uses lots of different strings to signal that a
method us not implemented; e.g. "Driver not capable", "Driver not
capable": X", "Driver no capable" (sic), "not supported by server",
"under construction", "JDBC 3 method called - not yet supported",
"jdbc 2 method not yet implemented", "X is not supported". I may have
missed some...

On each line I list the method with signature, and status for the
embedded driver and the client driver, in that order. I use "NI" to
mark not implemented, and a "+" to mark (apparently) implemented.

The next step should be to check the tests and the documentation, as
soon as we agree on how the harminization should be carried out.

                                                          Embedded Client
Resultset#                                      
getUnicodeStream(int columnIndex)                               NI   +
getUnicodeStream(String columnName)                             NI   +
updateBlob(int columnIndex, Blob x)                             +   NI
updateBlob(String columnName, Blob x)                           +   NI
updateClob(int columnIndex, Clob x)                             +   NI
updateClob(String columnName, Clob x)                           +   NI


CallableStatement#   
getBlob(int i)                                                  NI   +   
getBytes(int parameterIndex)                                    NI   + 
getClob(int i)                                                  NI   + 
registerOutParameter(int paramIndex, int sqlType,                                     
                                 String typeName)               NI   +²

²bug:does nothing!
Should be filed as separate bug?


Blob#
setBinaryStream(long pos)                                       NI   +¹  
setBytes(long pos, byte[] bytes)                                NI   +   
setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
truncate(long len)                                              NI   +   

¹bug reported by Laurentz Albe
http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
Should be filed as separate bug?


Clob#
setAsciiStream(long pos)                                        NI   +  
setCharacterStream(long pos)                                    NI   +  
setString(long pos, String str)                                 NI   +  
setString(long pos, String str, int offset, int len)            NI   +  
truncate(long len)                                              NI   +  

PreparedStatement#
setNull(int paramIndex, int sqlType, String typeName)           NI   +³
setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +

³bug: ignores typename
Should be filed as separate bug?


DatabaseMetaData#
getSuperTables(String catalog, String schemaPattern, 
               String tableNamePattern)                         NI  +
getSuperTypes(String catalog, String schemaPattern, 
              String typeNamePattern)                           NI  +
locatorsUpdateCopy()                                            NI  +
getAttributes(String catalog, String schemaPattern, 
              String typeNamePattern, 
              String attributeNamePattern)                      NI  +


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by David Van Couvering <Da...@Sun.COM>.
No, that's great, thanks.

David

Dag H. Wanvik wrote:

>Hi David,
>
>  
>
>>>>>>"DVC" == David Van Couvering <Da...@Sun.COM> wrote:
>>>>>>            
>>>>>>
>DVC> 
>DVC> Thanks, Dag.  Can you link this to DERBY-310?
>
>I already did; not sure I used the right kind of link, though, I used
>"related to", want something else?
>
>Dag
>  
>

Re: [jira] Created: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Dag H. Wanvik" <Da...@Sun.COM>.
Hi David,

>>>>> "DVC" == David Van Couvering <Da...@Sun.COM> wrote:
DVC> 
DVC> Thanks, Dag.  Can you link this to DERBY-310?

I already did; not sure I used the right kind of link, though, I used
"related to", want something else?

Dag

Re: [jira] Created: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by David Van Couvering <Da...@Sun.COM>.
Thanks, Dag.  Can you link this to DERBY-310?

David

Dag H. Wanvik (JIRA) wrote:

>JDBC client and embedded drivers differ wrt API subset supported
>----------------------------------------------------------------
>
>         Key: DERBY-477
>         URL: http://issues.apache.org/jira/browse/DERBY-477
>     Project: Derby
>        Type: Improvement
>  Components: JDBC, Network Server, Network Client  
>    Versions: 10.1.1.0, 10.2.0.0, 10.1.1.1    
>    Reporter: Dag H. Wanvik
> Attachments: api-diffs.txt
>
>After having noticed some differences (mail url below) in Clob and
>Blob support, I did a walkthough of both drivers of things marked as
>"not implemented", "not supported", etc., to see how they align.
>
>[http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
>
>Below is a summary of my findings. I attach a file "api-diffs.txt"
>which shows all "not implemented" methods in the interfaces I looked
>at, also for those cases where the drivers are in agreement.
>
>Caveat 1: This is all based on visual inspection of the code only.
>
>Caveat 2: I mostly looked at the top-level API implementation code, so
>there may be cases where the cut-off occurs at a lower level in the
>code which I missed.
>
>Caveat 3: The client uses lots of different strings to signal that a
>method us not implemented; e.g. "Driver not capable", "Driver not
>capable": X", "Driver no capable" (sic), "not supported by server",
>"under construction", "JDBC 3 method called - not yet supported",
>"jdbc 2 method not yet implemented", "X is not supported". I may have
>missed some...
>
>On each line I list the method with signature, and status for the
>embedded driver and the client driver, in that order. I use "NI" to
>mark not implemented, and a "+" to mark (apparently) implemented.
>
>The next step should be to check the tests and the documentation, as
>soon as we agree on how the harminization should be carried out.
>
>                                                          Embedded Client
>Resultset#                                      
>getUnicodeStream(int columnIndex)                               NI   +
>getUnicodeStream(String columnName)                             NI   +
>updateBlob(int columnIndex, Blob x)                             +   NI
>updateBlob(String columnName, Blob x)                           +   NI
>updateClob(int columnIndex, Clob x)                             +   NI
>updateClob(String columnName, Clob x)                           +   NI
>
>
>CallableStatement#   
>getBlob(int i)                                                  NI   +   
>getBytes(int parameterIndex)                                    NI   + 
>getClob(int i)                                                  NI   + 
>registerOutParameter(int paramIndex, int sqlType,                                     
>                                 String typeName)               NI   +²
>
>²bug:does nothing!
>Should be filed as separate bug?
>
>
>Blob#
>setBinaryStream(long pos)                                       NI   +¹  
>setBytes(long pos, byte[] bytes)                                NI   +   
>setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
>truncate(long len)                                              NI   +   
>
>¹bug reported by Laurentz Albe
>http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
>Should be filed as separate bug?
>
>
>Clob#
>setAsciiStream(long pos)                                        NI   +  
>setCharacterStream(long pos)                                    NI   +  
>setString(long pos, String str)                                 NI   +  
>setString(long pos, String str, int offset, int len)            NI   +  
>truncate(long len)                                              NI   +  
>
>PreparedStatement#
>setNull(int paramIndex, int sqlType, String typeName)           NI   +³
>setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
>
>³bug: ignores typename
>Should be filed as separate bug?
>
>
>DatabaseMetaData#
>getSuperTables(String catalog, String schemaPattern, 
>               String tableNamePattern)                         NI  +
>getSuperTypes(String catalog, String schemaPattern, 
>              String typeNamePattern)                           NI  +
>locatorsUpdateCopy()                                            NI  +
>getAttributes(String catalog, String schemaPattern, 
>              String typeNamePattern, 
>              String attributeNamePattern)                      NI  +
>
>
>  
>

[jira] Updated: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-477:
-------------------------------------

    Bug behavior facts: [Embedded/Client difference]

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>                 Key: DERBY-477
>                 URL: https://issues.apache.org/jira/browse/DERBY-477
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Network Client, Network Server
>    Affects Versions: 10.1.1.0, 10.1.2.1, 10.2.1.6
>            Reporter: Dag H. Wanvik
>         Attachments: api-diffs.txt
>
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744039#action_12744039 ] 

Knut Anders Hatlen commented on DERBY-477:
------------------------------------------

DERBY-2443 implemented embedded ResultSet.updateBlob/updateClob.
DERBY-2247 implemented all the Blob methods.
DERBY-2800 and DERBY-2346 implemented all the Clob methods.
DERBY-1493 implemented embedded PreparedStatement.setNull(int,int,String), and like the client implementation it ignores the type name.
DERBY-968 implemented the remaining embedded DatabaseMetaData methods.
EmbedCallableStatement.getBytes(int) is (and has always been) implemented, so it was probably included in the list by mistake.

That leaves us with one remaining issue: CallableStatement.getBlob(int) and CallableStatement.getClob(int) are not implemented on the embedded driver.

Should we open a separate issue for those two methods and close this issue?

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>                 Key: DERBY-477
>                 URL: https://issues.apache.org/jira/browse/DERBY-477
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Network Client, Network Server
>    Affects Versions: 10.1.1.0, 10.1.2.1, 10.2.1.6
>            Reporter: Dag H. Wanvik
>         Attachments: api-diffs.txt
>
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-477.
--------------------------------------

    Resolution: Fixed

The remaining issue with getBlob()/getClob() in CallableStatement doesn't make much sense to fix until DERBY-4066 is fixed. Even though the client driver implements the methods, they cannot actually be used as long as Clob/Blob arguments are not allowed in procedures. I've added a note about this on DERBY-4066, and I'm resolving this issue since all the differences have been fixed or are tracked by other issues.

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>                 Key: DERBY-477
>                 URL: https://issues.apache.org/jira/browse/DERBY-477
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Network Client, Network Server
>    Affects Versions: 10.1.1.0, 10.1.2.1, 10.2.1.6
>            Reporter: Dag H. Wanvik
>         Attachments: api-diffs.txt
>
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744070#action_12744070 ] 

Dag H. Wanvik commented on DERBY-477:
-------------------------------------

+1


> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>                 Key: DERBY-477
>                 URL: https://issues.apache.org/jira/browse/DERBY-477
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Network Client, Network Server
>    Affects Versions: 10.1.1.0, 10.1.2.1, 10.2.1.6
>            Reporter: Dag H. Wanvik
>         Attachments: api-diffs.txt
>
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Kristian Waagan (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-477?page=comments#action_12373436 ] 

Kristian Waagan commented on DERBY-477:
---------------------------------------

CallableStatement.registerOutParameter(int paramIndex, int sqlType, String typeName) is addressed by DERBY-1184. When some more issues are fixed, maybe we can post an updated list over the differences.

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>          Key: DERBY-477
>          URL: http://issues.apache.org/jira/browse/DERBY-477
>      Project: Derby
>         Type: Improvement

>   Components: JDBC, Network Client, Network Server
>     Versions: 10.1.2.0, 10.1.1.0, 10.2.0.0
>     Reporter: Dag H. Wanvik
>  Attachments: api-diffs.txt
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744024#action_12744024 ] 

Knut Anders Hatlen commented on DERBY-477:
------------------------------------------

DERBY-253 addressed ResultSet.getUnicodeStream() and PreparedStatement.setUnicodeStream().

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>                 Key: DERBY-477
>                 URL: https://issues.apache.org/jira/browse/DERBY-477
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Network Client, Network Server
>    Affects Versions: 10.1.1.0, 10.1.2.1, 10.2.1.6
>            Reporter: Dag H. Wanvik
>         Attachments: api-diffs.txt
>
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by David Van Couvering <Da...@Sun.COM>.
Thanks, Fernanda.  I think this should probably be a new JIRA issue 
rather than a comment to DERBY-477, and then linked to DERBY-310

David

Fernanda Pizzorno (JIRA) wrote:

>    [ http://issues.apache.org/jira/browse/DERBY-477?page=comments#action_12318888 ] 
>
>Fernanda Pizzorno commented on DERBY-477:
>-----------------------------------------
>
>RecordSet#
>relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row.
>
>The embedded driver shows the behaviour described in the JDBC 3.0 specification, returning false and postitioning in either before first or after last. While the client/server driver returns true and incrementing/decrementing the current row by "rows" and not setting the position to either before first of after last.
>
>I have run a test with a result set with 10 rows, where I positioned in row 5 and moved +20 and - 20 using relative(int rows). With the embedded driver the method returned false, the current row was set to 0 and isAfterLast() and isBeforeFirst() returned true (for +20 and -20 respectively). With the client/server driver the method returned true, the current row was set to 25 and -15 (for +20 and -20 respectively) and isAfterLast() and isBeforeFirst() returned false.
>
>  
>
>>JDBC client and embedded drivers differ wrt API subset supported
>>----------------------------------------------------------------
>>
>>         Key: DERBY-477
>>         URL: http://issues.apache.org/jira/browse/DERBY-477
>>     Project: Derby
>>        Type: Improvement
>>  Components: JDBC, Network Client, Network Server
>>    Versions: 10.1.1.0, 10.1.1.1, 10.2.0.0
>>    Reporter: Dag H. Wanvik
>> Attachments: api-diffs.txt
>>
>>After having noticed some differences (mail url below) in Clob and
>>Blob support, I did a walkthough of both drivers of things marked as
>>"not implemented", "not supported", etc., to see how they align.
>>[http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
>>Below is a summary of my findings. I attach a file "api-diffs.txt"
>>which shows all "not implemented" methods in the interfaces I looked
>>at, also for those cases where the drivers are in agreement.
>>Caveat 1: This is all based on visual inspection of the code only.
>>Caveat 2: I mostly looked at the top-level API implementation code, so
>>there may be cases where the cut-off occurs at a lower level in the
>>code which I missed.
>>Caveat 3: The client uses lots of different strings to signal that a
>>method us not implemented; e.g. "Driver not capable", "Driver not
>>capable": X", "Driver no capable" (sic), "not supported by server",
>>"under construction", "JDBC 3 method called - not yet supported",
>>"jdbc 2 method not yet implemented", "X is not supported". I may have
>>missed some...
>>On each line I list the method with signature, and status for the
>>embedded driver and the client driver, in that order. I use "NI" to
>>mark not implemented, and a "+" to mark (apparently) implemented.
>>The next step should be to check the tests and the documentation, as
>>soon as we agree on how the harminization should be carried out.
>>                                                          Embedded Client
>>Resultset#                                      
>>getUnicodeStream(int columnIndex)                               NI   +
>>getUnicodeStream(String columnName)                             NI   +
>>updateBlob(int columnIndex, Blob x)                             +   NI
>>updateBlob(String columnName, Blob x)                           +   NI
>>updateClob(int columnIndex, Clob x)                             +   NI
>>updateClob(String columnName, Clob x)                           +   NI
>>CallableStatement#   
>>getBlob(int i)                                                  NI   +   
>>getBytes(int parameterIndex)                                    NI   + 
>>getClob(int i)                                                  NI   + 
>>registerOutParameter(int paramIndex, int sqlType,                                     
>>                                 String typeName)               NI   +²
>>²bug:does nothing!
>>Should be filed as separate bug?
>>Blob#
>>setBinaryStream(long pos)                                       NI   +¹  
>>setBytes(long pos, byte[] bytes)                                NI   +   
>>setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
>>truncate(long len)                                              NI   +   
>>¹bug reported by Laurentz Albe
>>http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
>>Should be filed as separate bug?
>>Clob#
>>setAsciiStream(long pos)                                        NI   +  
>>setCharacterStream(long pos)                                    NI   +  
>>setString(long pos, String str)                                 NI   +  
>>setString(long pos, String str, int offset, int len)            NI   +  
>>truncate(long len)                                              NI   +  
>>PreparedStatement#
>>setNull(int paramIndex, int sqlType, String typeName)           NI   +³
>>setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
>>³bug: ignores typename
>>Should be filed as separate bug?
>>DatabaseMetaData#
>>getSuperTables(String catalog, String schemaPattern, 
>>               String tableNamePattern)                         NI  +
>>getSuperTypes(String catalog, String schemaPattern, 
>>              String typeNamePattern)                           NI  +
>>locatorsUpdateCopy()                                            NI  +
>>getAttributes(String catalog, String schemaPattern, 
>>              String typeNamePattern, 
>>              String attributeNamePattern)                      NI  +
>>    
>>
>
>  
>

[jira] Commented: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Fernanda Pizzorno (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-477?page=comments#action_12318888 ] 

Fernanda Pizzorno commented on DERBY-477:
-----------------------------------------

RecordSet#
relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row.

The embedded driver shows the behaviour described in the JDBC 3.0 specification, returning false and postitioning in either before first or after last. While the client/server driver returns true and incrementing/decrementing the current row by "rows" and not setting the position to either before first of after last.

I have run a test with a result set with 10 rows, where I positioned in row 5 and moved +20 and - 20 using relative(int rows). With the embedded driver the method returned false, the current row was set to 0 and isAfterLast() and isBeforeFirst() returned true (for +20 and -20 respectively). With the client/server driver the method returned true, the current row was set to 25 and -15 (for +20 and -20 respectively) and isAfterLast() and isBeforeFirst() returned false.

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>          Key: DERBY-477
>          URL: http://issues.apache.org/jira/browse/DERBY-477
>      Project: Derby
>         Type: Improvement
>   Components: JDBC, Network Client, Network Server
>     Versions: 10.1.1.0, 10.1.1.1, 10.2.0.0
>     Reporter: Dag H. Wanvik
>  Attachments: api-diffs.txt
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Dag H. Wanvik (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-477?page=all ]

Dag H. Wanvik updated DERBY-477:
--------------------------------

    Attachment: api-diffs.txt

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>          Key: DERBY-477
>          URL: http://issues.apache.org/jira/browse/DERBY-477
>      Project: Derby
>         Type: Improvement
>   Components: JDBC, Network Server, Network Client
>     Versions: 10.1.1.0, 10.2.0.0, 10.1.1.1
>     Reporter: Dag H. Wanvik
>  Attachments: api-diffs.txt
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DERBY-477) JDBC client and embedded drivers differ wrt API subset supported

Posted by "Fernanda Pizzorno (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-477?page=all ]

Fernanda Pizzorno updated DERBY-477:
------------------------------------

    Comment: was deleted

> JDBC client and embedded drivers differ wrt API subset supported
> ----------------------------------------------------------------
>
>          Key: DERBY-477
>          URL: http://issues.apache.org/jira/browse/DERBY-477
>      Project: Derby
>         Type: Improvement
>   Components: JDBC, Network Client, Network Server
>     Versions: 10.1.1.0, 10.1.1.1, 10.2.0.0
>     Reporter: Dag H. Wanvik
>  Attachments: api-diffs.txt
>
> After having noticed some differences (mail url below) in Clob and
> Blob support, I did a walkthough of both drivers of things marked as
> "not implemented", "not supported", etc., to see how they align.
> [http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c17111.57879.760051.226994@sun.com%3e],
> Below is a summary of my findings. I attach a file "api-diffs.txt"
> which shows all "not implemented" methods in the interfaces I looked
> at, also for those cases where the drivers are in agreement.
> Caveat 1: This is all based on visual inspection of the code only.
> Caveat 2: I mostly looked at the top-level API implementation code, so
> there may be cases where the cut-off occurs at a lower level in the
> code which I missed.
> Caveat 3: The client uses lots of different strings to signal that a
> method us not implemented; e.g. "Driver not capable", "Driver not
> capable": X", "Driver no capable" (sic), "not supported by server",
> "under construction", "JDBC 3 method called - not yet supported",
> "jdbc 2 method not yet implemented", "X is not supported". I may have
> missed some...
> On each line I list the method with signature, and status for the
> embedded driver and the client driver, in that order. I use "NI" to
> mark not implemented, and a "+" to mark (apparently) implemented.
> The next step should be to check the tests and the documentation, as
> soon as we agree on how the harminization should be carried out.
>                                                           Embedded Client
> Resultset#                                      
> getUnicodeStream(int columnIndex)                               NI   +
> getUnicodeStream(String columnName)                             NI   +
> updateBlob(int columnIndex, Blob x)                             +   NI
> updateBlob(String columnName, Blob x)                           +   NI
> updateClob(int columnIndex, Clob x)                             +   NI
> updateClob(String columnName, Clob x)                           +   NI
> CallableStatement#   
> getBlob(int i)                                                  NI   +   
> getBytes(int parameterIndex)                                    NI   + 
> getClob(int i)                                                  NI   + 
> registerOutParameter(int paramIndex, int sqlType,                                     
>                                  String typeName)               NI   +²
> ²bug:does nothing!
> Should be filed as separate bug?
> Blob#
> setBinaryStream(long pos)                                       NI   +¹  
> setBytes(long pos, byte[] bytes)                                NI   +   
> setBytes(long pos, byte[] bytes, int offset, int len)           NI   +   
> truncate(long len)                                              NI   +   
> ¹bug reported by Laurentz Albe
> http://mail-archives.apache.org/mod_mbox/db-derby-dev/200507.mbox/%3c859414957.1121432109873.JavaMail.jira@ajax.apache.org%3e
> Should be filed as separate bug?
> Clob#
> setAsciiStream(long pos)                                        NI   +  
> setCharacterStream(long pos)                                    NI   +  
> setString(long pos, String str)                                 NI   +  
> setString(long pos, String str, int offset, int len)            NI   +  
> truncate(long len)                                              NI   +  
> PreparedStatement#
> setNull(int paramIndex, int sqlType, String typeName)           NI   +³
> setUnicodeStream(int parameterIndex, InputStream x, int length) NI   +
> ³bug: ignores typename
> Should be filed as separate bug?
> DatabaseMetaData#
> getSuperTables(String catalog, String schemaPattern, 
>                String tableNamePattern)                         NI  +
> getSuperTypes(String catalog, String schemaPattern, 
>               String typeNamePattern)                           NI  +
> locatorsUpdateCopy()                                            NI  +
> getAttributes(String catalog, String schemaPattern, 
>               String typeNamePattern, 
>               String attributeNamePattern)                      NI  +

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira