diff options
author | unknown <joerg@trift2.> | 2007-12-17 13:40:06 +0100 |
---|---|---|
committer | unknown <joerg@trift2.> | 2007-12-17 13:40:06 +0100 |
commit | 4cb292504c2a3346e146751bc0c6a994a7f969f4 (patch) | |
tree | add93bb5852f27f999861454d6d8a3c66b20b1a4 /sql/udf_example.c | |
parent | b003abdcecc3b9d2a5147dc4f75e3a6a5ca032cf (diff) | |
parent | 7213ca204dc3d10f751ca2507321eede1238d6cb (diff) | |
download | mariadb-git-4cb292504c2a3346e146751bc0c6a994a7f969f4.tar.gz |
Merge trift2.:/MySQL/M51/mysql-5.1
into trift2.:/MySQL/M51/push-5.1
sql/sql_table.cc:
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; } |