Reputation: 3416
I guess I have a strange error while insert a record in a SQLJet database. I open the database connection and use following code to insert a test record.
ISqlJetTable tbl = db.getTable("file");
tbl.insert("filename");
Eclipse shows me a red icon with the info message
The method insert(Object[]) in the type ISqlJetTable is not applicable for the arguments (String).
What went wrong? If I remember rightly on my mac I don’t get this error message. I’m sorry I haven’t access to my mac at the moment. How to fix this? The tutorial use the same way. Greetz
Upvotes: 0
Views: 350
Reputation: 66657
The method insert(Object[]) in the type ISqlJetTable is not applicable for the arguments (String).
You need to pass String[]/Object[] instead of just String. Based on documentation syntax for insert method is insert(Object[] arr)
Upvotes: 1