Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i am getting error

tx.executeSql('CREATE TABLE IF NOT EXISTS '+CASENAME'+(id INTEGER PRIMARY KEY AUTOINCREMENT, DocumentName TEXT NOT NULL,DocumentDate INTEGER ,DocumentNotes TEXT NOT NULL)');

Error:
Unexpected string
Posted
Comments
[no name] 6-Jul-13 22:19pm    
I would check the placement of your quote characters.

1 solution

To expand on ThePhantomUpvoter's comment - which answers the question - but mostly to remove this from the unanswered list:
Change:
C#
x.executeSql('CREATE TABLE IF NOT EXISTS '+CASENAME'+(id INTEGER PRIMARY KEY AUTOINCREMENT, DocumentName TEXT NOT NULL,DocumentDate INTEGER ,DocumentNotes TEXT NOT NULL)');

To:
C#
x.executeSql('CREATE TABLE IF NOT EXISTS '+CASENAME+'(id INTEGER PRIMARY KEY AUTOINCREMENT, DocumentName TEXT NOT NULL,DocumentDate INTEGER ,DocumentNotes TEXT NOT NULL)');
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900