Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions user_guide_src/source/database/query_builder/098.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

// Note that the second parameter of the ``get_compiled_select`` method is false
// Note that the parameter of the `getCompiledSelect()` method is false
$sql = $builder->select(['field1', 'field2'])
->where('field3', 5)
->getCompiledSelect(false);
Expand All @@ -13,5 +13,5 @@
$data = $builder->get()->getResultArray();
/*
* Would execute and return an array of results of the following query:
* SELECT field1, field1 from mytable where field3 = 5;
* SELECT field1, field2 FROM mytable WHERE field3 = 5;
*/