commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terefang Verigorn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-117) Error in control the use of ParameterMetaData
Date Fri, 12 Dec 2014 12:30:13 GMT

    [ https://issues.apache.org/jira/browse/DBUTILS-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244054#comment-14244054
] 

Terefang Verigorn commented on DBUTILS-117:
-------------------------------------------

thanks Sebb but also ...

if getParameterMetaData() would throw an SQL-(Unsupported-)Exception the handling would also
have to be fixed.

the crate driver marks itself as jdbc-incomplient anyway in [1], which prompts me to expect
null pointers.

also jdbc-spec-level 2.0/3.0/4.0 cannot be checked with ease so its either try/catch or check
for null pointer.

[1] https://github.com/crate/crate-jdbc/blob/master/src/main/java/io/crate/client/jdbc/CrateDriver.java#L92

> Error in control the use of ParameterMetaData
> ---------------------------------------------
>
>                 Key: DBUTILS-117
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-117
>             Project: Commons DbUtils
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Vadim Smirnov
>            Priority: Minor
>              Labels: easyfix, newbie
>             Fix For: 1.7
>
>         Attachments: DBUTILS-117-tests.patch, DBUTILS-117.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Error in fillStatement method of AbstractQueryRunner class.
> There is no try...catch statement near pmd = stmt.getParameterMetaData();
> So method fails instead of automaticallye turning pmdKnownBroken to true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message