On 1/6/2014 3:33 PM, trash Spam wrote:
void myFunc( sqlite3_context* ctx, int nArgs, sqlite3_value** values ) { //.... const char* expr = (const char*)sqlite3_value_text( values[ 0 ] ): //.... }select myFunc( col1 + col2 ) ; The expression "col1 + col2" is evaluated when i call sqlite3_value_text or before the call of myFunc ?
Before the call to myFunc. I'm pretty sure SQLite doesn't do lazy evaluation here.
Also, you probably meant "col1 || col2": '+' does not perform string concatenation (unless you do intend to add two numbers, then have SQLite convert the result to text).
-- Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

