Menu

#4970 (ok 4.5) Subqueries Cause PHP Error on Refresh

4.4.10
resolved
None
Normal
2015-07-13
2015-06-26
Saygin
No

Run the query "select (select 1), (select 2)" from the SQL page, then hit Refresh to run again. You get the error below:
Notice in ./libraries/sqlparser.lib.php#2477
Undefined offset: -1

Discussion

  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Marc Delisle

    Marc Delisle - 2015-06-26

    Madhura,
    this is similar to https://sourceforge.net/p/phpmyadmin/feature-requests/1419/

    and would be best handled by the parser rewrite GSoC project. If you agree, please assign this to myself.

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne --> Marc Delisle
     
  • Madhura Jayaratne

    Indeed, this seems to be related to parsing

     
  • Dan Ungureanu

    Dan Ungureanu - 2015-07-13

    I could not reproduce this using the latest version of phpMyAdmin (the one that integrates the new parser). It seems to be fixed.

     

    Last edit: Dan Ungureanu 2015-07-13
  • Marc Delisle

    Marc Delisle - 2015-07-13
    • summary: Subqueries Cause PHP Error on Refresh --> (ok 4.5) Subqueries Cause PHP Error on Refresh
    • status: open --> resolved