Skip to content

Query data that includes '@' is not able to be found  #58

Open
@makluganteng

Description

@makluganteng

i tried querying an email for example

`
// FindAccount retrieves an account by email from the "accounts" table.
func FindAccount(client *supabase.Client, email string) (map[string]interface{}, error) {
var results []map[string]interface{}

err := client.DB.From("accounts").Select("*").Eq("email", email).Execute(&results)
log.Info(results)
if err != nil {
	return nil, err
}

if len(results) == 0 {
	return nil, nil
}

return results[0], nil

}

`

but it keeps returning an empty mapping but when there isnt any symbols it works and it was found. is there something i need to do to handle this kind of things ?

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