Forum Discussion

cbyndr's avatar
cbyndr
Contributor
15 years ago

results of mysql query in jdbc data source are all null

Has anyone run up against this?

1. create jdbc data source, prop transfer, test request, datasource loop steps
2. configure, test jdbc datasource
- datasource is mysql
- mysql drivers already added to path, of course
3. create simple query and property for data source.
- property: tn
- query: select col from table
4. Run data source step:

Data source "Got 13 rows" as expected, but results are all null. I can run the same query from squirrel, and get 13 non-null values.

Attached screen shot to show the result set with all null.

[Note: I deleted the query before taking the screen shot]
  • Hi,

    I'm very sorry for such a delay in answering your question.
    Property name must match the column name you are selecting, i.e. if you have "select col1 from table1" property name must be col1 (of course you can use something like 'select table1.some_col as col1 from table1' as well).
    Please check if this might be the source of your problem and let us know if you need further help.

    Regards,
    Dragica
    /eviware.com
  • setting the name of the property to the name of the column did the trick, thank you!