summaryrefslogtreecommitdiffstats
path: root/codebase/db_phpcake.php
diff options
context:
space:
mode:
authorMaria Staskova <masha@dhtmlx.com>2014-05-20 14:53:56 +0300
committerMaria Staskova <masha@dhtmlx.com>2014-05-20 14:53:56 +0300
commit074750e6ee632990c5b9334473df0f8b4b65c000 (patch)
treea4a93727ffdae161b9df42e93066c03cff980088 /codebase/db_phpcake.php
parent8959cc7e4727f5e28f6d3d44b5124d364dab2253 (diff)
parentd5d7611f58fdbd5c49df78336c3856d747585c4e (diff)
downloadconnector-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.php7
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();