Bug #84638 Missing FROM clause returns error when using INTO at the end of the statement
| Submitted: | 24 Jan 2017 12:40 | Modified: | 26 Jan 2017 17:15 |
|---|---|---|---|
| Reporter: | Arthur Tokarchuk | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 5.6, 5.7 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[24 Jan 2017 12:40]
Arthur Tokarchuk
[26 Jan 2017 17:15]
MySQL Verification Team
Hi! In the first implementation of the INTO @var, which was made back in mysql-5.0, this construct, INTO @var1, @var2, could have gone only after SELECT list. Now, I see both in our manual, paragraph "13.2.9.1 SELECT ... INTO Syntax", as well as in our Bison code, that INTO variables_list is located at the same spot as INTO files_of_different_format. Hence, I think that this is a bug in our parser. I have tested with both , 5.6 and 5.7. Verified.
[30 Jan 2017 6:47]
Roy Lyseng
Sinisa, you should have checked with 8.0 too. After Gleb's refactoring of the parser, these statements are all accepted. I suggest that you close the bug as fixed in 8.0.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.