Open nielscup opened 7 years ago
Old issue but I am getting the same type of error.
I am using SQLite-net-pcl 1.5.231.
Whenever I use a Trim() in a Where() query I get a "wrong number of arguments to function trim()" error.
For exemple, calling:
var dbProvinces = DB.Table<Province>().Where(x => x.Code.Trim().ToUpper() == code);
I get:
wrong number of arguments to function trim()
at SQLite.SQLite3.Prepare2 (SQLitePCL.sqlite3 db, System.String query) [0x0001b] in <eaa146ee868043e287f5507c8701ad9e>:0
at SQLite.SQLiteCommand.Prepare () [0x00011] in <eaa146ee868043e287f5507c8701ad9e>:0
at SQLite.SQLiteCommand.ExecuteScalar[T] () [0x00036] in <eaa146ee868043e287f5507c8701ad9e>:0
at SQLite.TableQuery`1[T].Count () [0x0000b] in <eaa146ee868043e287f5507c8701ad9e>:0
at ....ProvinceDB.Get (System.String code, System.Boolean onlyEnabled) [0x00192] in /.../DB/ProvinceDB.cs:37
Should this error be reported in the SQLitePCL.raw project?
any updates about the resolution? I'm still getting an exception whenever I try using .Trim()
Any solutions? I'm struggling with the same problem.
Hi, I get the following error message in my Windows 8.1 project when I use Trim() in a query. I am using the following package: SQLite.Net.Core-PCL 3.1.1. I also have this error when I use Replace(" ", ""). Hope you are able to fix this. Please let me know if you need any more information. Thanks!
wrong number of arguments to function trim()