manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1032) Can't crawl MySQL database tables
Date Tue, 16 Sep 2014 15:41:35 GMT


Karl Wright commented on CONNECTORS-1032:

Hi Mario,

There's already a switch available in the JDBC connection for whether the name or the alias
is used for the column name in JDBC.  I suspect you will need to change the setting you use
for this.  Here's a screen shot:

You want to try both "by name" and "by label", and see which one returns the right column


> Can't crawl MySQL database tables
> ---------------------------------
>                 Key: CONNECTORS-1032
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: JDBC connector
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>         Attachments: screenshot-1.png, screenshot-2.png
> Against some indeterminate version of MySQL, the seeding query:
> {code}
> SELECT command_id AS $(IDCOLUMN) FROM icinga_commands
> {code}
> ... produces the following:
> Error: Bad seed query; doesn't return $(IDCOLUMN) column. Try using quotes around $(IDCOLUMN)
variable, e.g. "$(IDCOLUMN)".
> So does:
> {code}
> SELECT command_id AS "$(IDCOLUMN)" FROM icinga_commands
> {code}
> The first level of diagnosis will be to determine what column names are in fact being
returned.  IDynamicResultRow has the following method:
> {code}
>  public Iterator<String> getColumns();
> {code}
> ... which we will need to use to get at the column names.

This message was sent by Atlassian JIRA

View raw message