Skip to content

SELECT EXISTS (...) syntax not supported #74

@D1360-64RC14

Description

@D1360-64RC14

The following SQL throws an error:

row := r.db.QueryRow(`
    SELECT EXISTS (
        SELECT
            1
        FROM
            users
        WHERE
            id = ?
    );
`, id)
Syntax error near select exists (

I tried the exact same code on a real MySQL database, and it worked fine.


  • GoLang version: 1.20
  • In go.mod: github.com/proullon/ramsql v0.0.0-20230224205054-8ff679dbf7aa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions