question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The function created by SqliteConnection.CreateFunction doesn't provide the correct byte[] parameter

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bricelamcommented, Oct 16, 2019

Confirmed. Updating SQLitePCL.raw fixed your sample. Closing as external. Note, we’ve already updated to this version in 3.1.0-preview1

0reactions
bricelamcommented, Oct 17, 2019

Ah, looks like the change didn’t make it into preview1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

C# SQLite parameterized queries fail to include parameter ...
I'm attempting to rework some SQLite queries that I'm making in the my application to use parameters instead of concatenating a string, to...
Read more >
Unexpected System.AccessViolationException when using ...
Hi, I'm using this library in my personal project and when executing a query, there is a probability that a System.
Read more >
sqlite3 — DB-API 2.0 interface for SQLite databases
Each open SQLite database is represented by a Connection object, which is created using sqlite3.connect() . Their main purpose is creating Cursor objects,...
Read more >
SqliteConnection.CreateFunction Method
Creates or redefines a SQL function. ... SqliteConnection.CreateFunction Method. Reference. Feedback ... The type of the seventh parameter of the function.
Read more >
Python SQLite tutorial using sqlite3
This Python SQLite tutorial aims to demonstrate how to develop Python database applications with the SQLite database. You will learn how to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found