We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

A "Orubase.SQLiteStorage" error

var sql = "SELECT * FROM sqlite_master WHERE type='table';";

Orubase.SQLiteStorage.executeQuery(sql)

it's ok

var sql = "SELECT * FROM sqlite_master WHERE type='table not to found';";




4 Replies

RE rexhxiao January 6, 2013 12:25 PM UTC

will throw "Uncaught SyntaxError: Unexpected token ILLEGAL

from

executeQuery:function (query,p) {
window[callbackNameExecuteQuery] = function (status, data) {
alert(JSON.stringify(data));
if (status.toLowerCase() === "true") {  
       var result = JSON.parse(data);
		            var result;
		            if (data == "0 records found") {
		                result = JSON.parse(data);
		                result = [];
		            } else {
		                result = JSON.parse(data);
		            }
p.onSuccess(result);
} else {
p.onFailure(data);
}
};
var args=[query];
Orubase.Utility.PerformCall("ExecuteSQLiteQuery", callbackNameExecuteQuery, args);
},


SS Sahaya Sweetlin Ponmalar P Syncfusion Team January 8, 2013 08:59 AM UTC

Hi Rexhxiao,

 

We have fixed this issue in our current source. We will include this fix with our upcoming Orubase releases. Thanks for sharing your code.

 

Please let us know if you have any queries.

 

Regards,

Ponmalar P



RE rexhxiao January 25, 2013 04:00 AM UTC

same issue for 
selectAll:function (tablename,p) {
		    window[callbackNameSelectAll] = function (status, data) {


SS Sahaya Sweetlin Ponmalar P Syncfusion Team January 25, 2013 10:02 AM UTC

Hi Rexhxiao,

 

Sorry for the inconvenience caused.

 

We will fix this issue and this will be included in our Vol 1, 2013 release. Please let us know if you have any queries.

 

Regards,

Ponmalar P


Loader.
Live Chat Icon For mobile
Up arrow icon