Skip to content

Commit

Permalink
Fix SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaelMobilia authored and trasher committed Jan 4, 2017
1 parent eb6e40b commit 89234bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/devapi/dbiterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ or ``SELECT DISTINCT`` options
$DB->request('glpi_computers', ['FIELDS' => 'id']);
// => SELECT `id` FROM `glpi_computers`
$DB->request(['SELECT DISTINCT' => 'id', 'FROM' => 'glpi_computers']);
$DB->request(['SELECT DISTINCT' => 'name', 'FROM' => 'glpi_computers']);
// => SELECT DISTINCT `name` FROM `glpi_computers`
$DB->request('glpi_computers', ['DISTINCT FIELDS' => 'name']);
Expand Down

0 comments on commit 89234bc

Please sign in to comment.