sqlite queries returning errors - can't work out why
-
30-06-2021 - |
Вопрос
Not sure this is a side-effect of a custom function in sqlite, but I was trying to use the queries to power a form. (here's a rough demo http://www.thisisstaffordshire.co.uk/images/localpeople/ugc-images/275796/binaries/GPformMap4.html)
Slight problem is that if I use a query using certain terms the query returns data:
But others not including the electronic_prescription tag, don't and return the following error:
{u'error': u'sqliteexecute: sqlite3.Error: user-defined function raised exception'}
I think the problem is down to an error using a custom function to return a distance based on two lat/long-defined points.
What have I done wrong? More importantly, is it easy to fix?
Решение
David Jones has answered this question on the ScraperWiki email list. You can read the answer here:
https://groups.google.com/forum/?fromgroups=#!topic/scraperwiki/Rh6qkNHiRjI