-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
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
SipTrace with MySQL #83
Comments
@hogbinj can you please do:
and post the output? I suspect you are using the The |
@hogbinj I managed to find a fix that will work with any SQL mode. Cheers! |
* be compatible with any SQL mode. This fixes: SELECT DISTINCT callid FROM sip_trace WHERE status='' AND direction='in' ORDER BY id DESC; ERROR 3065 (HY000): Expression #1 of ORDER BY clause is not in SELECT list, references column 'opensips.sip_trace.id' which is not in SELECT list; this is incompatible with DISTINCT * be consistent across different backends (e.g. don't sort the results differently with MySQL vs. Postgres) Fixes #83 (cherry picked from commit e2c4246)
* be compatible with any SQL mode. This fixes: SELECT DISTINCT callid FROM sip_trace WHERE status='' AND direction='in' ORDER BY id DESC; ERROR 3065 (HY000): Expression #1 of ORDER BY clause is not in SELECT list, references column 'opensips.sip_trace.id' which is not in SELECT list; this is incompatible with DISTINCT * be consistent across different backends (e.g. don't sort the results differently with MySQL vs. Postgres) Fixes #83 (cherry picked from commit e2c4246)
The standard empty query returns no results.
Looking at the database
SELECT DISTINCT callid FROM sip_trace WHERE status='' AND direction='in' ORDER BY id DESC;
gets
ERROR 3065 (HY000): Expression #1 of ORDER BY clause is not in SELECT list, references column 'opensips.sip_trace.id' which is not in SELECT list; this is incompatible with DISTINCT
I fixed it in opensips/web/tools/system/siptrace/template/tracer.main.php
where line 140 needed to change id to callid to match the postgres call below it,
The text was updated successfully, but these errors were encountered: