Menu

#1419 Parser doesn't handle nested selects

Needs_decision
open
Normal
2015-02-20
2004-05-17
Anonymous
No

I use phpMyAdmin-2.5.6
Here is a query I get from my bookmarks.

SELECT items.itemID, serialNumber, partNumber, S1.notes
AS ACTIONNote, room, shelf,
LEVEL , employees.firstName
FROM items
LEFT JOIN actions S1 ON S1.itemID = items.itemID
LEFT JOIN locationInt ON locationInt.locationID =
S1.locationIntID
LEFT JOIN ToolsCommonDB.employees ON
employees.employeeID = desk
WHERE owner
LIKE 'CS' AND tmsp = (
SELECT max( S2.tmsp )
FROM actions S2
WHERE S1.itemID = S2.itemID )

I use the 'export' link at the bottom of the page.

When the page is displayed, the query has been changed to :
SELECT max( S2 . tmsp ) FROM actions S2 WHERE S1 .
itemID = S2 . itemID )

My email is wilfried.kopp@wanadoo.fr

Best regards,
Will

Discussion

  • Michal Čihař

    Michal Čihař - 2004-05-17

    Logged In: YES
    user_id=192186

    Could you please post here structure of these tables and
    some testing data?

     
  • Michal Čihař

    Michal Čihař - 2004-05-17
    • assigned_to: nobody --> nijel
     
  • Michal Čihař

    Michal Čihař - 2004-05-26

    Logged In: YES
    user_id=192186

    Any chance to get these?

     
  • Michal Čihař

    Michal Čihař - 2004-07-15

    Logged In: YES
    user_id=192186

    Export of this query fixed, however SQL parser should handle
    this situation correctly, so leaving open.

     
  • Michal Čihař

    Michal Čihař - 2004-07-15
    • milestone: --> Latest_Git
    • summary: Bug when exporting a query with more than 1 select --> Parser doesn't handle nested selects
    • assigned_to: nijel --> nobody
    • labels: 546627 --> MySQL Parser
     
  • Michal Čihař

    Michal Čihař - 2004-07-15
    • priority: 5 --> 7
     
  • Marc Delisle

    Marc Delisle - 2006-01-20
    • priority: 7 --> 5
     
  • Marc Delisle

    Marc Delisle - 2013-01-19
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-01-19
    • assigned_to: Marc Delisle --> nobody
     
  • Marc Delisle

    Marc Delisle - 2013-04-09

    Ticket moved from /p/phpmyadmin/bugs/1249/

     
  • Marc Delisle

    Marc Delisle - 2015-02-15
    • Priority: 5 --> Normal
     
  • Madhura Jayaratne

    • labels: MySQL Parser --> MySQL Parser, gsoc
    • assigned_to: Marc Delisle
    • Group: Latest_Git --> Needs_decision
     
  • Madhura Jayaratne

    Assigning to Marc since there is a proposed GSoC project on parser rewrite mentored by Marc.

     

    Last edit: Madhura Jayaratne 2015-02-20