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
+
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|
+---
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
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
> +-+
> |