an error in FTS5 document

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

an error in FTS5 document

Hideaki Takahashi
Hello,

I found an error in a code example in the FTS5 document.
https://sqlite.org/fts5.html#extending_fts5

    sqlite3_bind_pointer(pStmt, (void*)&pRet, "fts5_api_ptr");

sqlite3_bind_pointer needs a parameter index and a pointer to destructor
too, so I think it should be

    sqlite3_bind_pointer(pStmt, 1, (void*)&pRet, "fts5_api_ptr", NULL);


Thank you,
Hideaki
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: an error in FTS5 document

Richard Hipp-3
Thanks.  Now fixed.

On 8/10/17, Hideaki Takahashi <[hidden email]> wrote:

> Hello,
>
> I found an error in a code example in the FTS5 document.
> https://sqlite.org/fts5.html#extending_fts5
>
>     sqlite3_bind_pointer(pStmt, (void*)&pRet, "fts5_api_ptr");
>
> sqlite3_bind_pointer needs a parameter index and a pointer to destructor
> too, so I think it should be
>
>     sqlite3_bind_pointer(pStmt, 1, (void*)&pRet, "fts5_api_ptr", NULL);
>
>
> Thank you,
> Hideaki
> _______________________________________________
> sqlite-users mailing list
> [hidden email]
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>


--
D. Richard Hipp
[hidden email]
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Loading...