Re: [sqlite] Personal function and parameter evaluation.

2014-01-06 Thread Igor Tandetnik
On 1/6/2014 6:17 PM, trash Spam wrote: No, I did not mean anything special. This is an example. The query may not work there is no table so no type. Your use of sqlite3_value_text suggested that the function expected a string as a parameter. -- Igor Tandetnik

Re: [sqlite] Personal function and parameter evaluation.

2014-01-06 Thread trash Spam
No, I did not mean anything special. This is an example. The query may not work there is no table so no type. 2014/1/6 Igor Tandetnik > On 1/6/2014 3:33 PM, trash Spam wrote: > >> void myFunc( sqlite3_context* ctx, int nArgs, sqlite3_value** values ) >> { >> // >>

Re: [sqlite] Personal function and parameter evaluation.

2014-01-06 Thread Igor Tandetnik
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

[sqlite] Personal function and parameter evaluation.

2014-01-06 Thread trash Spam
Hi, 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