Skip to content
Snippets Groups Projects
Commit bbd15f3c authored by Elengikal's avatar Elengikal
Browse files

[UC 41] PR review changes

parent 50f9aa5e
No related branches found
No related tags found
1 merge request!19[UC 41] PR review changes
......@@ -342,7 +342,7 @@ public class ApptDAO {
conn = factory.getConnection();
pstring = conn.prepareStatement(
"SELECT * FROM appointment WHERE " + /*" sched_date.after(?)=TRUE AND sched_date.before(?)=TRUE");*/
"SELECT * FROM appointment WHERE " + // select appointments where
"DATE(sched_date)<=DATE_ADD(CURRENT_DATE, INTERVAL ? DAY) AND " + //sched_date day is before or at (numDays) days from now
"sched_date>=CURRENT_DATE"); // sched_date is after today
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment