mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user