ℹ Computer information
- VFP version: VFP9 SP2
- GoFish version: 6.0 (last)
- Last GoFish version w/o bug (if available): bug is in everyone version I know
📝 Provide detailed reproduction steps (if any)
- Start GoFish
- Search
✔️ Expected result
See the result witout errors
❌ Actual result
Error:
SQL: ORDER BY clause is invalid.
I fix the error by finding the command in the gf_resultsform form:
Select *;
From (m.lcSearchEngineResultsAlias);
Into Cursor gf_temp_csr Readwrite;
Order By &lcOrderBy
and before it I put these 2 lines:
lcOrderBy = STRTRAN(m.lcOrderBy, 'PROCCODE ASC,', '', 1, 1)
lcOrderBy = STRTRAN(m.lcOrderBy, 'PROCCODE DESC,', '', 1, 1)
`
The reason for the error is that VFP does not allow sorting by memo field. I guess there is a better way to eliminate the problem, but this works for me anyway.
Hope this helps to fix this nasty bug.
📷 Screenshots

ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
See the result witout errors
❌ Actual result
Error:
SQL: ORDER BY clause is invalid.
I fix the error by finding the command in the
gf_resultsformform:Select *;From (m.lcSearchEngineResultsAlias);Into Cursor gf_temp_csr Readwrite;Order By &lcOrderByand before it I put these 2 lines:
lcOrderBy = STRTRAN(m.lcOrderBy, 'PROCCODE ASC,', '', 1, 1)lcOrderBy = STRTRAN(m.lcOrderBy, 'PROCCODE DESC,', '', 1, 1)`
The reason for the error is that VFP does not allow sorting by memo field. I guess there is a better way to eliminate the problem, but this works for me anyway.
Hope this helps to fix this nasty bug.
📷 Screenshots