I created one nested select statement with left joins, its not displaying the data. When i am removing nested SELECT its working properly.
is render_sql() will support nested SELECT statement?
$scheduler->render_sql(
"SELECT event_user.event_user_id, event_user.event_id, event_user.user_id, user.username
FROM event_user LEFT JOIN user ON event_user.user_id = user.user_id
", "event_user_id", "event_user_id, event_id, user_id, username"
);
And it worked correctly.
Error during data selecting
Invalid SQL: SELECT DISTINCT(APPT.id) AS appt_id, APPT.Start_Date AS start_date, APPT.End_Date AS end_date, APPT.pi AS pi, APPT.fi AS fi, APPT.type AS type, APPT.status AS status, APPT.rec_type AS rec_type, APPT.event_pid AS event_pid, APPT.event_length AS event_length, COALESCE(TYP.Name, '') AS appt_type, COALESCE(STA.Name, '') AS appt_status, APPT.a_key AS a_key, COALESCE(APPT.pKey, -1) AS p_key, (PAT.first_name || ' ' || PAT.last_name) AS pat_full_name, COALESCE(APPT.Notes, '') AS appt_notes, (SELECT (COALESCE(first_name, '') || ' ' || COALESCE(last_name, '')) FROM name_table WHERE name_key = APPT.name_key
ERROR: syntax error at end of input
COALESCE() is working porperly, I’m using Nested SELECT.
render_sql() will support nested SELECT or not ?
from DataRequest.java (inside DHTMLX java connector)
now its working, thanks for the information.
it will make any other issue in future?
please replay.
The format of the update (patch or changes in the next release) will be determined upon further investigation of the issue. I can’t comment on that yet.
Though results should be available on the next week.
There are reasons for skipping the limit part in the SQL queries. Connector itself sets limits in case of dynamic loading and some others. So limits in the query and ones set in the code would not work together.
In your case if everything worked correctly so far you can leave this line commented.
Another (I believe more solid one) approach would be to work more closely with your database, e.g. create necessary views so LIMIT statements wouldn’t be used in a query.
I am sorry for the inconvenience and hope this clears the issue.