diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2007-11-27 17:19:51 +0200 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2007-11-27 17:19:51 +0200 |
commit | 9d503cea20bc5f2e1569f16b0114d34dfd875d66 (patch) | |
tree | a3c420386343c1c165e1543cfd9788b34d0cb9bd /sql/udf_example.c | |
parent | 3058e0257315eeb183a1df10376cd9f4df3061fb (diff) | |
parent | 63b65169534c97f0c225859d2d6d49f3cee2bc10 (diff) | |
download | mariadb-git-9d503cea20bc5f2e1569f16b0114d34dfd875d66.tar.gz |
Merge magare.gmz:/home/kgeorge/mysql/work/B30355-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B30355-5.1-opt
include/mysql_com.h:
Auto merged
mysql-test/r/udf.result:
Auto merged
mysql-test/t/udf.test:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
sql/udf_example.c:
Auto merged
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; } |