Re: UDF Programming Problem

2003-08-14 Thread Ariz Jacinto
Jeremy Zawodny wrote: On Tue, Aug 12, 2003 at 02:32:00PM +0800, Ariz Jacinto wrote: i've created a simple UDF (for testing) that returns a string. my problem is that the string that it returns, contain some of the characters of the longest string in the column. example: Table +

UDF Programming Problem

2003-08-14 Thread Ariz Jacinto
i've created a simple UDF (for testing) that returns a string. my problem is that the string that it returns, contain some of the characters of the longest string in the column. example: Table +-+ |name | +-+ | hello world | | goodbye| +---

Re: UDF Programming Problem

2003-08-14 Thread Murad Nayal
Hello, > > extern "C" __declspec(dllexport) char *echo(UDF_INIT *initid, UDF_ARGS *args, char > *is_null, char *error) > { > return args->args[0]; > } > args->args[0] is not null terminated. This is how I've been handling this. please let me know if there is a better approach (i.e. whether

Re: UDF Programming Problem

2003-08-14 Thread Jeremy Zawodny
On Tue, Aug 12, 2003 at 02:32:00PM +0800, Ariz Jacinto wrote: > i've created a simple UDF (for testing) that returns a string. > my problem is that the string that it returns, contain some > of the characters of the longest string in the column. > > example: > > Table > +-+ > |