Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added new option 'resultDetectTypes' - calls automatically detectTypes()

  • Loading branch information...
commit 527863fcce7158fb4cd97e81f6c14e23ce742826 1 parent 4054bdc
@dg authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  dibi/dibi.php
  2. +4 −0 dibi/libs/DibiResult.php
View
2  dibi/dibi.php
@@ -145,7 +145,7 @@ class dibi
/**#@+
* Configuration options
*/
- const ROW_CLASS = 'rowClass';
+ const RESULT_DETECT_TYPES = 'resultDetectTypes';
const ASC = 'ASC', DESC = 'DESC';
/**#@-*/
View
4 dibi/libs/DibiResult.php
@@ -57,6 +57,10 @@ class DibiResult extends DibiObject implements IDataSource
public function __construct($driver, $config)
{
$this->driver = $driver;
+
+ if (!empty($config[dibi::RESULT_DETECT_TYPES])) {
+ $this->detectTypes();
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.