I'm using the following function to execute SQL, it works fine for when no return is needed but if I do a query like "SELECT * FROM table" then it won't return anything. The function is:
function executeSQL(query)
{
return db.transaction(function(q)
{
return q.executeSql(query, null,
function (q, results)
{
debug(results);
return results;
},
function (q, error)
{
debug(error);
}
);
});
}
And the way I'm calling it is:
results = executeSQL('SELECT * FROM `table`');