The function created by SqliteConnection.CreateFunction doesn't provide the correct byte[] parameter
See original GitHub issueThe function created by SqliteConnection.CreateFunction doesn’t provide the correct byte[] parameter.
To Reproduce
I create a sample to reproduce this issue.
There are “geometry” and “geometryString” in the output of this sample. The “geometryString” is a string field that converted from “geometry”(byte array field) by the “CS_GeometryString” function. And I convert the “geometry” to string when I output it to the console. So they should be the same in the output. (But they don’t.) That means the “geometry” is not passed to the “CS_GeometryString” function correctly.
And it is strange that the preview version of the Microsoft.Data.Sqlite package(3.0.0-preview5.19227.1) doesn’t have this bug.
Additional context
Microsoft.Data.Sqlite version: 3.0.0 Target framework: .NET Core 3.0 Operating system: Win10
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Confirmed. Updating SQLitePCL.raw fixed your sample. Closing as external. Note, we’ve already updated to this version in 3.1.0-preview1
Ah, looks like the change didn’t make it into preview1.