Re: Virtual table function calls

Jens Alfke <jens-mAcipnqRhZf2eFz/[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <[email protected]>

> On Feb 13, 2020, at 12:52 PM, David Jones <[email protected]> wrote:
> 
>   sqlite> select F,G,H,attr(H,3) from summary;           # show formula used to calculate column H.

Maybe pass the column name as a string, i.e. `attr('H',3)`? It sounds like your `attr` function needs to know the _identity_ of the column, not its contents, and the name is basically the identity.

—Jens
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.