Bug #39832 | Inconsistents when doing SELECTS using session variables in IN() clause | ||
---|---|---|---|
Submitted: | 3 Oct 2008 8:05 | Modified: | 3 Oct 2008 8:43 |
Reporter: | Marc Buchmann | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.0.24a | OS: | Linux (Redhat ES$) |
Assigned to: | CPU Architecture: | Any |
[3 Oct 2008 8:05]
Marc Buchmann
[3 Oct 2008 8:43]
Valeriy Kravchuk
This is not a bug. You may use user variable instead of single expression. So, in the IN(@var) @var's value is just substituted and you get IN('2,3') as a result. This is NOT the same as IN(2,3), where we have 2 expressions in a comma-separated list.