| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 |
Browse archives
Search |
Fix Sugar SQL queriesI decided to spend a little time today seeing if I could fix the queries described in one of my previous posts. The error affects Contacts, Accounts, Bug Tracker and Projects when an item is opened. The item displays and would normally show the related items below it, but instead shows an ugly SQL error like this one:
The error text (and source query) are longer for entities with more related items possible, since each expected block would have another union strung on to it. I expect that this is because of some incompatibility between versions of MySQL, and I am trying to use an older version than the required 4.0. I would guess that this is valid SQL but just not working in versions prior to 4; I recall that MySQL has fairly recently added some SQL features such as subqueries and unions. A little more investigating of MySQL docs shows that this is correct, the UNION operator was added in MySQL version 4. So, it looks like I am probably wasting time trying to debug and fix SQL queries that are not really wrong just incompatible. My choices: There is really too much possible impact on customers for the first to be an option. I'll have to think about the others. By Roger Campbell at Aug 18 2005 - 8:51am
|
NavigationUser loginSyndicate |