I'm using Javascript for a Phonegap App and SQLite in order to manage my database.
This is simple, I'm trying to make this query:
SELECT IFNULL(name, 'Not Specified') FROM person
When I run it on SQLite Manager it works just fine, returns me "Not specified" when is null, and the name of the person when it's not. Nothing wrong here.
But, in the real app, that very same query returns undefined. If I change the query to
SELECT name FROM person
it works, but when I add the IFNULL function, it just starts returning undefined for every row.
Any hint about this?