db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DERBY-2607) DatabaseMetaData is not consistent about throwing SqlException when tablename=null
Date Mon, 18 Jun 2007 08:01:35 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bernt M. Johnsen resolved DERBY-2607.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.3.0.0
       Derby Info:   (was: [Patch Available])

Merged from trunk: svn merge -r 548250:548251 https://svn.apache.org/repos/asf/db/derby/code/trunk
Committed revision 548252 on 10.3



> DatabaseMetaData is not consistent about throwing SqlException when tablename=null
> ----------------------------------------------------------------------------------
>
>                 Key: DERBY-2607
>                 URL: https://issues.apache.org/jira/browse/DERBY-2607
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client, Newcomer
>    Affects Versions: 10.3.0.0
>            Reporter: Jørgen Løland
>            Assignee: Thomas Nielsen
>            Priority: Trivial
>             Fix For: 10.3.0.0, 10.4.0.0
>
>         Attachments: d2607.diff
>
>
> According to java.sql.DatabaseMetaData, the following DatabaseMetaData methods should
not allow tablename=null:
> getBestRowIdentifier, getColumnPrivileges, getIndexInfo, getVersionColumns, getPrimaryKeys,
getImportedKeys, getExportedKeys. In the five former methods, SqlExceptions are thrown if
tablename == null, but this check is not performed in the latter two.
> The method calls eventually end up in EmbedDatabaseMetaData, which performs this check.
Hence, an exception is thrown either way. If we want the exception to be thrown as early as
possible, the two latter methods should do so as well. If not, the check should be removed
from the former methods. 

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


Mime
View raw message