}
}
// Select API:
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($table);
$hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
switch ($hType) {
case 'native':
}
// Select API
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($table);
$hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
switch ($hType) {
case 'native':
}
// Select API
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($table);
$hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
switch ($hType) {
case 'native':
}
// Get handler key and select API:
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ if (count($remappedParameters) > 0) {
+ $mappedQueryParts = $this->compileSelectParameters($remappedParameters);
+ $fromTable = $mappedQueryParts[1];
+ } else {
+ $fromTable = $from_table;
+ }
+ $this->lastHandlerKey = $this->handler_getFromTableList($fromTable);
$hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
switch ($hType) {
case 'native':
}
// Select API
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($table);
$hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
switch ($hType) {
case 'native':
}
// Find columns
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($tableName);
switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
case 'native':
$columns_res = mysql_query('SHOW columns FROM ' . $tableName, $this->handlerInstance[$this->lastHandlerKey]['link']);
}
// Find columns
- $this->lastHandlerKey = $this->handler_getFromTableList($ORIG_tableName);
+ $this->lastHandlerKey = $this->handler_getFromTableList($tableName);
switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
case 'native':
$keyRes = mysql_query('SHOW keys FROM ' . $tableName, $this->handlerInstance[$this->lastHandlerKey]['link']);