We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type UvDictRow struct { Adid string AdidCount int } var uvDictRows []UvDictRow err = repo.FindAll( ctx, &uvDictRows, rel.Select("adid", "COUNT(DISTINCT userid) as adid_count"), rel.From("log_visits").Group("adid"), where.Eq("plan_id", plan_id), ) if err != nil { return }
*mysql.MySQLError=Error 1054: Unknown column 'log_visits.DISTINCT userid' in 'field list', string=args, []interface {}=[[26]]) {"error": "Error 1054: Unknown column 'log_visits.DISTINCT userid' in 'field list'"}
The text was updated successfully, but these errors were encountered:
seems this is no documented yet, but you can avoid escaping the field by using ^ prefix, example:
^
rel.Select("adid", "^COUNT(DISTINCT userid) as adid_count"),
Sorry, something went wrong.
thanks
No branches or pull requests
*mysql.MySQLError=Error 1054: Unknown column 'log_visits.DISTINCT userid' in 'field list', string=args, []interface {}=[[26]])
{"error": "Error 1054: Unknown column 'log_visits.DISTINCT userid' in 'field list'"}
The text was updated successfully, but these errors were encountered: