-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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]Error parsing column 8 (X=0 - Int64) #1285
Comments
Sqlite is weird with INTEGER. public long IsSearch { get; set; } Theres is no need to make it nullable unless you need nulls. You may also try using select ifnull(Is_Search, 0) from table |
@kelvindules
from the message ,long property still present as 'System.Int32'. |
@akaylh This looks like #524 . Try casting it as bigint select cast(Is_Search as bigint) from table Not sure if that is already addressed. |
@kelvindules thank you very much. |
I have query,the result is :
use
dapper 1.60.1
andmicrosoft.data.sqlite.core 2.2.3
, my application report :these filed is interger in sqlite, my class like this:
when change
int
toint?
orint
tolong?
still not working 。If change the provider to
System.Data.SQLite.Core
is working fine.The text was updated successfully, but these errors were encountered: