diff options
author | Maria Staskova <masha@dhtmlx.com> | 2014-05-20 14:53:56 +0300 |
---|---|---|
committer | Maria Staskova <masha@dhtmlx.com> | 2014-05-20 14:53:56 +0300 |
commit | 074750e6ee632990c5b9334473df0f8b4b65c000 (patch) | |
tree | a4a93727ffdae161b9df42e93066c03cff980088 /codebase/db_phpcake.php | |
parent | 8959cc7e4727f5e28f6d3d44b5124d364dab2253 (diff) | |
parent | d5d7611f58fdbd5c49df78336c3856d747585c4e (diff) | |
download | connector-php-074750e6ee632990c5b9334473df0f8b4b65c000.zip connector-php-074750e6ee632990c5b9334473df0f8b4b65c000.tar.gz connector-php-074750e6ee632990c5b9334473df0f8b4b65c000.tar.bz2 |
Merge branch 'master' of 192.168.3.251:connector-php
Diffstat (limited to 'codebase/db_phpcake.php')
-rw-r--r-- | codebase/db_phpcake.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/codebase/db_phpcake.php b/codebase/db_phpcake.php index 980c9c3..97d94eb 100644 --- a/codebase/db_phpcake.php +++ b/codebase/db_phpcake.php @@ -13,7 +13,12 @@ if you plan to use it for Oracle - use Oracle connection type instead **/ class PHPCakeDBDataWrapper extends ArrayDBDataWrapper{ public function select($sql){ - $res = $this->connection->find("all"); + $source = $sql->get_source(); + if (is_array($source)) //result of find + $res = $source; + else + $res = $this->connection->find("all"); + if (sizeof($res)){ $name = get_class($this->connection); $temp = array(); |