mattn / mattn/go-sqlite3

Allow user-defined functions to accept pointers

Open
#729 4 comments 0 reactions 1 assignee View on GitHub

@gjrtimmer is already working on this.

Since Aug 22, 2019.

enhancement research
Dominant language
C
Stars
9.2k
Forks
1.2k
Avg merge
19m
Merged PRs (30d)
4

Description

See #728. There the user had defined a function that took a string and SQLite tried to pass NULL to it. That resulted in an error from this library stating argument must be BLOB or TEXT. Changing the function to take a *string instead didn't work and resulted in an error stating don't know how to convert to *string. Please update the private callbackArg func used by RegisterFunc to properly handle an input type of kind reflect.Ptr.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.