You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jirka (JIRA)" <ji...@apache.org> on 2016/05/30 12:13:12 UTC

[jira] [Commented] (KARAF-4540) No source name completion for command jdbc:query and jdbc:execute

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

Jirka commented on KARAF-4540:
------------------------------

The problem is in
org.apache.karaf.jdbc.command.parsing.JdbcParser
https://github.com/apache/karaf/blob/karaf-4.0.x/jdbc/src/main/java/org/apache/karaf/jdbc/command/parsing/JdbcParser.java#L66

It wraps the last argument in "". During completion this last argument is the name of the data source and not an SQL statement, therefore later in the completer it does not match with any data source name. 

> No source name completion for command jdbc:query and jdbc:execute
> -----------------------------------------------------------------
>
>                 Key: KARAF-4540
>                 URL: https://issues.apache.org/jira/browse/KARAF-4540
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-jdbc
>    Affects Versions: 4.0.5
>            Reporter: Jirka
>            Priority: Minor
>
> In the Karaf command line after typing these commands and TAB
> {code}
> jdbc:query
> jdbc:execute
> {code}
> no data source names are offered.
> After manually typing the data source name and an SQL select statement, the command works as expected.
> Data source name completion works for other commands such as 
> {code}
> jdbc:tables
> jdbc:ds-delete
> {code} 
> The data source is registered using pax-jdbc-config.



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