Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1032

Can't crawl MySQL database tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • JDBC connector
    • None

    Description

      Against some indeterminate version of MySQL, the seeding query:

      SELECT command_id AS $(IDCOLUMN) FROM icinga_commands
      

      ... produces the following:

      Error: Bad seed query; doesn't return $(IDCOLUMN) column. Try using quotes around $(IDCOLUMN) variable, e.g. "$(IDCOLUMN)".

      So does:

      SELECT command_id AS "$(IDCOLUMN)" FROM icinga_commands
      

      The first level of diagnosis will be to determine what column names are in fact being returned. IDynamicResultRow has the following method:

       public Iterator<String> getColumns();
      

      ... which we will need to use to get at the column names.

      Attachments

        1. screenshot-1.png
          7 kB
          Mario Bisonti
        2. screenshot-2.png
          5 kB
          Mario Bisonti

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: