summaryrefslogtreecommitdiffstats
path: root/codebase
diff options
context:
space:
mode:
authorDmitry <dmitry@dhtmlx.com>2012-07-19 13:38:08 +0200
committerDmitry <dmitry@dhtmlx.com>2012-07-19 13:38:08 +0200
commita21541aebaccdef94197aa227b0917bf2320d701 (patch)
tree8695587c3e193363d84e0ac6e19d39280a2b844e /codebase
parent0e9f9cba27e21ff7d0ddbe829f13cb98ccbe638c (diff)
downloadconnector-php-a21541aebaccdef94197aa227b0917bf2320d701.zip
connector-php-a21541aebaccdef94197aa227b0917bf2320d701.tar.gz
connector-php-a21541aebaccdef94197aa227b0917bf2320d701.tar.bz2
configure may take sql instead of table
Diffstat (limited to 'codebase')
-rw-r--r--codebase/base_connector.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php
index b845e81..fcb76c8 100644
--- a/codebase/base_connector.php
+++ b/codebase/base_connector.php
@@ -414,7 +414,10 @@ class Connector {
$id = $info["key"];
}
$this->config->init($id,$fields,$extra,$relation_id);
- $this->request->set_source($table);
+ if (strpos(trim($table), " ")!==false)
+ $this->request->parse_sql($table);
+ else
+ $this->request->set_source($table);
}
public function uuid(){