Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite Insert Error : SQL logic error unrecognized token: @ #689

Open
maxbrugnerotto opened this issue Jun 22, 2023 · 0 comments
Open

SQLite Insert Error : SQL logic error unrecognized token: @ #689

maxbrugnerotto opened this issue Jun 22, 2023 · 0 comments

Comments

@maxbrugnerotto
Copy link

maxbrugnerotto commented Jun 22, 2023

Hi
Any Insert command into SQLite database generate a run time error:
SQL logic error unrecognized token: @
If I use a MySQL database the insert command run successfully

Code example:
string SQLiteDatabase = @"C:\Temp\FileEspresso.db";
SQLiteConnection sqliteConn = new SQLiteConnection("Data Source=" + SQLiteDatabase + ";Version=3");
sqliteConn.Open();
db = new NPoco.Database(sqliteConn, DatabaseType.MySQL);
Category cat = new Category(0, 1, "XXXXX TEST-1- XXXXX");
db.Insert(cat); // <-- Run time error here!!!
db.CloseSharedConnection();

NPocoTest.zip
Attached here a sample application (copy SQLite sample database file FileEspresso.db into folder C:\Temp)

Many thanks and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant