Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.9, 10.1(EOL)
-
XAMPP bundle on Windows 8.1
-
10.1.13
Description
The following query fails:
- SET SESSION wait_timeout = GREATEST(28000, @@wait_timeout)
Error:
#1232 - Incorrect argument type to variable 'wait_timeout`
There should be no type conversion issue as those queries work:
- SET SESSION wait_timeout = 28000;
- SET SESSION wait_timeout = @@wait_timeout;
- SELECT GREATEST(28000, @@wait_timeout);
please see this SO question for detail:
http://stackoverflow.com/questions/35187378/mariadb-type-error-when-setting-session-variable
Thanks for the report.
The problem was introduced by this commit:
commit 09b87d6293b4b41321ba98366d5d7ade9ad681d3
Author: Alexander Barkov <bar@mariadb.org>
Date: Wed Sep 30 10:05:16 2015 +0400
MDEV-8871 Wrong result for CREATE TABLE .. SELECT LEAST(unsigned_column,unsigned_column)