When there are no alerts, a SQL Error message appears.
Steps to replicate:
1. Use the database for quote sources;
2. Under preferences/Alerts, enable alerts.
3. Remove all alerts, if any.
4. Restart Venice
5. The message 'Error talking to database: You have an error in your SQL syntax..." should appear.
There are at least three issues here:
1. The code which checks for triggered alerts should check for an empty symbol list and then return instead of creating an EODQuoteRange without any symbols;
2. When given an EODQuoteRange that contains no symbols, DatabaseQuoteSource.loadQuoteRange builds a malformed SQL query;
3. DatabaseQuoteSource.loadQuoteRange should avoid sending superfluous queries to the database in the first place.
Diff: