so that jobs don't execute every time round the loop
regardless of schedule, per Brian Kalbfus.
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@6848
a7884b65-44f6-0310-8a51-
81a127f17b15
\r
Date Dev Ver Change details\r
---------- --- ----- --------------\r
+2007-11-28 DP 1.8.1 Fix pgAgent's job query when a host agent is specified\r
+ so that jobs don't execute every time round the loop\r
+ regardless of schedule, per Brian Kalbfus.\r
2007-11-28 DP 1.8.1 Add EnterpriseDB's default database (edb) to the Server\r
dialog's default option.\r
2007-11-28 DP 1.8.1 Don't allow the user to debug an EnterpriseDB package\r
wxT(" WHERE jobenabled ")
wxT(" AND jobagentid IS NULL ")
wxT(" AND jobnextrun <= now() ")
- wxT(" AND jobhostagent = '' OR jobhostagent = '") + hostname + wxT("'")
+ wxT(" AND (jobhostagent = '' OR jobhostagent = '") + hostname + wxT("')")
wxT(" ORDER BY jobnextrun"));
if (res)