Menu

#1126 Allow SQL query textarea growable / resizable

Needs_decision
out-of-date
nobody
5
2015-02-02
2008-10-28
vip
No

There's a problem with long lined sql queries in PMA, because textarea name="sql_query" (and in querywindow.php too) is not resizable (manually or automatically), so the whole sql query needs widget to be scrolled to take view in.
Additionally, when clicking "Edit" (http://phpmyadmin/tbl_sql.php?db=test&table=groups&sql_query=SELECT+%2A+FROM+%60groups%60+where+id+%3D+2&show_query=1&...#querybox) the query should be formatted with new lines like the import.php does in browse view.

Discussion

  • Jürgen Wind

    Jürgen Wind - 2008-10-28

    did you try $cfg['TextareaCols'] and $cfg['TextareaRows'] ?

     
  • vip

    vip - 2008-10-28

    That's not the point. Do you know how long your sql query will be? No. Secondly, imagine PMA for 100 people, one can use small queries (he don't need TextareaRows=30), and one long...

    When you type new (or edit) the best way is to manually grab and resize area (like wordpress' post editor) or http://lojjic.net/script-library/TextAreaResizer-test.html, or http://tuckey.org/textareasizer/

     
  • PHPcian

    PHPcian - 2012-12-25

    Was this feature request worked on?

     
  • Madhura Jayaratne

    Resizing text areas is supported in Chrome, Safari, Firefox and Opera.

     
  • Madhura Jayaratne

    • status: open --> out-of-date
    • Group: --> Needs_decision
     
MongoDB Logo MongoDB