Skip to content

Error: Unsupported feature: LIMIT with non-integer literal #439

@jnu

Description

@jnu

Getting the following error:

Error 1105: unknown error: unsupported feature: LIMIT with non-integer literal

Even though the query I'm running actually does use an integer, it's just interpolated.

Minimal repo:

_, err := db.Query(`SELECT * FROM foo LIMIT ?`, 10)
// err is "Error 1105: unknown error: unsupported feature: LIMIT with non-integer literal"

(maybe the error means non-literal integers are not supported? using LIMIT 10 instead of interpolating works.)

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