Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#339 (in 2.5.3) PHP CODE - simple

fixed
1
2013-06-11
2003-06-20
hatky
No

When you execute a query you have a button that writes php
code and it gives something like:

$sql = 'SELECT * ';
$sql .= 'FROM `programs` ';
$sql .= 'WHERE 1 LIMIT 0, 30';

In turms of perfemance and logic it sould be:

$sql = 'SELECT * '
. 'FROM `programs` '
. 'WHERE 1 LIMIT 0, 30';

This is now one commant insted of 3.

I put it as a FEATURE request becouse it's not sever ength to be
a bug....

Discussion

  • hatky
    hatky
    2003-06-20

    Logged In: YES
    user_id=329784

    in a matter of clearty in can also be
    When you execute a query you have a button that writes php
    code and it gives something like:

    $sql = 'SELECT * ';
    $sql .= 'FROM `programs` ';
    $sql .= 'WHERE 1 LIMIT 0, 30';

    In turms of perfemance and logic it sould be:

    $sql = 'SELECT * '
    . 'FROM `programs` '
    . 'WHERE 1 LIMIT 0, 30';

    or

    $sql = 'SELECT * '
    . 'FROM `programs` '
    . 'WHERE 1 LIMIT 0, 30';

     
  • Logged In: NO

    samir

     
  • Garvin Hicking
    Garvin Hicking
    2003-07-23

    • assigned_to: nobody --> garvinhicking
     
  • Garvin Hicking
    Garvin Hicking
    2003-07-24

    Logged In: YES
    user_id=473563

    Now in CVS

     
  • Garvin Hicking
    Garvin Hicking
    2003-07-24

    • labels: --> Displaying results
    • priority: 5 --> 1
    • summary: PHP CODE - simple --> (in 2.5.3) PHP CODE - simple
    • status: open --> open-fixed
     
  • Michal Čihař
    Michal Čihař
    2003-09-09

    • status: open-fixed --> closed-fixed
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • Status: closed-fixed --> fixed