Skip to content

escape reserved symbols #21

Description

@megabild

It would be nice to tell sqrl to escape column names for example "status" is a reserved symbol in mysql.

users := sq.Select("status").From("users").Join("emails USING (email_id)")
fmt.Println(users.ToSql())

output is:

SELECT status FROM users JOIN emails USING (email_id) [] <nil>

should be:

SELECT `status` FROM users JOIN emails USING (email_id) [] <nil>

Activity

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

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