diff options
author | gkodinov/kgeorge@magare.gmz <> | 2007-11-27 17:19:51 +0200 |
---|---|---|
committer | gkodinov/kgeorge@magare.gmz <> | 2007-11-27 17:19:51 +0200 |
commit | 0f3db011d58793b20b243815cb7b1eabd31a5fd5 (patch) | |
tree | a3c420386343c1c165e1543cfd9788b34d0cb9bd /sql/udf_example.c | |
parent | 66258ff324a15f3cf1a6ebdb44799bcd2b6b17a3 (diff) | |
parent | 8c3d5135baeba8a418ded32a649ae6ca3f75be3e (diff) | |
download | mariadb-git-0f3db011d58793b20b243815cb7b1eabd31a5fd5.tar.gz |
Merge magare.gmz:/home/kgeorge/mysql/work/B30355-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B30355-5.1-opt
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r-- | sql/udf_example.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c index 6f2093cc92f..a3d149f0971 100644 --- a/sql/udf_example.c +++ b/sql/udf_example.c @@ -648,13 +648,11 @@ my_bool sequence_init(UDF_INIT *initid, UDF_ARGS *args, char *message) return 1; } bzero(initid->ptr,sizeof(longlong)); - /* - Fool MySQL to think that this function is a constant - This will ensure that MySQL only evalutes the function - when the rows are sent to the client and not before any ORDER BY - clauses + /* + sequence() is a non-deterministic function : it has different value + even if called with the same arguments. */ - initid->const_item=1; + initid->const_item=0; return 0; } |