Menu

#262 (Parser) support UNION

Needs_planning
open
Normal
2015-03-05
2003-01-28
No

Support UNION statements in the parser and correctly
split table references and select expressions.

Discussion

  • Garvin Hicking

    Garvin Hicking - 2003-03-05
    • labels: --> Parsing
    • milestone: --> Needs_planning
     
  • Madhura Jayaratne

    • labels: Parsing --> Parsing, GSoC 2015
     
  • Madhura Jayaratne

    • labels: Parsing, GSoC 2015 --> Parsing, gsoc
     
  • Marc Delisle

    Marc Delisle - 2015-02-13
    • assigned_to: Marc Delisle
     
  • Nisarg Jhaveri

    Nisarg Jhaveri - 2015-03-05

    Where exactly do we need this? I mean after correctly splitting the select statements, where do we use/show it?

     
    • Marc Delisle

      Marc Delisle - 2015-03-06

      Originally, this was for code highlighting. I just made a quick test and don't see a problem when browsing and sorting on a column coming from an UNION.

      I guess you could not find anything either?

       
      • Marc Delisle

        Marc Delisle - 2015-03-06

        Found a problem which looks like a parser problem. Using the attached file, try
        select supplier.city, supplier.id from supplier union select customer.city, customer.id from customer
        then ask to sort on both columns (with shift+click on the second column).

         
        • Nisarg Jhaveri

          Nisarg Jhaveri - 2015-03-16

          This does not look like a parser problem.

          I've created a separate ticket at https://sourceforge.net/p/phpmyadmin/bugs/4807/

           
          • Marc Delisle

            Marc Delisle - 2015-03-17

            I accept your fix, but it could be a parser problem because the table name has not been determined.

             
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.