Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MySQL Data Source: Database type LONG not supported #8322

Closed
johnsusek opened this issue May 8, 2017 · 2 comments
Closed

[Bug] MySQL Data Source: Database type LONG not supported #8322

johnsusek opened this issue May 8, 2017 · 2 comments

Comments

@johnsusek
Copy link

  • What Grafana version are you using?
    grafana_4.3.0-7715pre1_amd64

  • What datasource are you using?
    mysql (amazon SDS replica)

  • What OS are you running grafana on?
    ubuntu 14.04

  • What did you do?
    Set up mysql data source
    Added new panel "Table"
    Clicked Metrics tab, selected mysql as data source.
    Format as: Table
    Entered a very simple sql query: select id from customers. id is an int
    Clicked preview button

  • What was the expected result?
    Show sql results in table panel

  • What happened instead?
    Received error when trying to preview panel: Database type LONG not supported

  • If related to metric query / data viz:
    Request:

{"from":"1494240196830","to":"1494261796832","queries":[{"refId":"A","intervalMs":10000,"maxDataPoints":1871,"datasourceId":1,"rawSql":"select\nid \nfrom customers\n","format":"table"}]}

Response:

{
    "timings": [
        null
    ],
    "results": {
        "A": {
            "error": "Database type LONG not supported",
            "refId": "A",
            "meta": {
                "sql": "select\nid \nfrom customers\n"
            },
            "series": null,
            "tables": null
        }
    },
    "message": "Database type LONG not supported"
}
@daniellee
Copy link
Contributor

Thanks for pointing this out. The mysql data source is still under construction. We have more types than this we need to add support for as well. We should get those added this week hopefully.

@torkelo torkelo added this to the 4.3.0-beta1 milestone May 12, 2017
@torkelo torkelo closed this as completed May 12, 2017
@torkelo torkelo modified the milestones: 4.3.0, 4.3.0-beta1 May 22, 2017
@torkelo
Copy link
Member

torkelo commented May 22, 2017

fixed in e8b7989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants