I've been working on several queries, but unfortunately I've encountered an issue with this one that is not providing a helpful error code.
The table I'm working with is 'Activity' and I simply want to select all records from it.
Initially, I had this query which worked perfectly:
const query = 'SELECT * FROM Activity WHERE status =? OR status = NULL';
return this.database.executeSql(query, [1]);
This query returns the expected results without any problems.
However, when I run this query instead:
const query = 'SELECT * FROM Activity';
return this.database.executeSql(query);
I encounter the following error message:
https://i.sstatic.net/JCEJY.png
Both queries return a Promise<any>
and store the results in a variable.
The executeSql
method requires one parameter, with the second being optional. The error message indicates that 6 results were found, which is correct.
If anyone has any insights or suggestions on what might be going wrong here, your help would be greatly appreciated!