Skip to content

bug / lack of QuoteIdent #45

@antonijakubiak-samsung

Description

@antonijakubiak-samsung

Hi,

There is a minor bug in the String method here:

influxql/ast.go

Line 2602 in b9e521f

_, _ = buf.WriteString(s.Database)

Should be:

	if s.Database != "" {
		_, _ = buf.WriteString(" ON ")
		_, _ = buf.WriteString(QuoteIdent(s.Database))
	}

See:
https://github.com/influxdata/influxql/blob/master/ast.go#L2533

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions