Re: Virtual table function calls

David Jones <jonesd-rN3PHIWzTs1Jm/[email protected]>
Newsgroups gmane.comp.db.sqlite.general
Message-ID <[email protected]>
Jens Alfke asks:
>Maybe pass the column name as a string, i.e. `attr('H',3)`

2 problems with that idea. First, the first argument has to refer to a value in the virtual table in order to invoke the overridden version (overrides are per table, so I use the ppArg to bind function invocation to associated virtual table). Second, if I created a view that gives column H a name of Total, I’d want to the function call to be attr(Total,3). I don’t know how to make the function figure out that attr(‘Total’,3) really means column H in some table.
>>Dave
_______________________________________________
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.