[MDEV-6780] Regression select @var := behavior from MySQL 5.5 Created: 2014-09-24 Updated: 2014-10-10 Resolved: 2014-09-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5.37 |
| Fix Version/s: | 10.0.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Stephen Blackstone | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OSX, CentOS |
||
| Description |
|
There is a difference between MariaDB's behavior and MySQL 5.5 when a query is doing select @var := count(*). MySQL would return the number of rows matched while Maria returns 0.. Its unclear to me which behavior is actually correct. While I personally wouldn't have used the := syntax here, someone else did and it broke our application a little bit.. ------------------------------------------------------ Minimal Example:
|
| Comments |
| Comment by Elena Stepanova [ 2014-09-26 ] |
|
It was fixed in 10.0.5. I can't point at the particular revision, as it was fixed by a big merge of 10.0-base (revno 3817 on 10.0 tree). It doesn't look critical enough to backport the fix to 5.5; please comment if you disagree. (I've set 'Fix Version' to 10.0.6 because 10.0.5 is not on the list). |