1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
evgen@sunlight.local f17a536e09 Fixed bug#16861: User defined variable can have a wrong value if a tmp table was
used.

Sorting by RAND() uses a temporary table in order to get a correct results.
User defined variable was set during filling the temporary table and later
on it is substituted for its value from the temporary table. Due to this
it contains the last value stored in the temporary table.

Now if the result_field is set for the Item_func_set_user_var object it 
updates variable from the result_field value when being sent to a client.

The Item_func_set_user_var::check() now accepts a use_result_field
parameter. Depending on its value the result_field or the args[0] is used
to get current value.
2006-08-22 17:37:41 +04:00
..
2006-07-16 01:18:08 +04:00
2005-09-30 14:03:55 +02:00
2006-06-17 02:57:50 +04:00
2005-11-03 22:42:25 +02:00
2006-06-28 12:18:21 -07:00
2006-03-30 17:14:55 +04:00
2006-04-13 17:22:56 +09:30
2006-05-30 17:10:53 -07:00
2006-07-21 10:14:25 -07:00
2005-08-12 13:54:42 +03:00
2006-06-17 02:11:12 +04:00
2005-06-07 00:31:53 +03:00
2006-04-04 17:54:58 -07:00
2006-07-15 00:28:21 -07:00
2005-06-07 00:31:53 +03:00
2006-07-08 04:07:43 +04:00
2006-06-27 00:47:52 +04:00
2006-07-13 16:35:25 -07:00
2005-05-26 21:01:55 +02:00
2005-08-12 17:57:19 +03:00
2006-04-13 17:22:56 +09:30
2006-05-03 21:35:27 -07:00
2006-04-21 08:19:38 -07:00
2006-08-09 06:46:06 +04:00
2006-06-14 23:54:08 +04:00
2006-06-27 00:47:52 +04:00