Exception: FLEA_Db_Exception_SqlQuery
Message: SQL Error Message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY sort asc' at line 1"
SQL : "SELECT `zzsfl`.`id` AS flea_pkref_id, `zzsfl`.* FROM `zzsfl` WHERE pid= ORDER BY sort asc"
SQL Error code: "7335941".
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Db/TableDataGateway.php [448]
#6 FLEA_Db_Driver_Mysql::execute('SELECT `zzsfl`.`id` AS fle ...')
ARGS:
Array
(
[0] => SELECT `zzsfl`.`id` AS flea_pkref_id, `zzsfl`.* FROM `zzsfl` WHERE pid= ORDER BY sort asc
)
SOURCE CODE:
438 |
// 当有关联需要处理时,必须获得主表的主键字段值
|
439 |
$sql = "SELECT {$distinct} {$this->qpka}, {$fields} FROM {$this->qtableName} {$whereby} {$sortby}";
|
440 |
} else {
|
441 |
$sql = "SELECT {$distinct} {$fields} FROM {$this->qtableName} {$whereby} {$sortby}";
|
442 |
}
|
443 |
|
444 |
// 根据 $length 和 $offset 参数决定是否使用限定结果集的查询
|
445 |
if (null !== $length || null !== $offset) {
|
446 |
$result = $this->dbo->selectLimit($sql, $length, $offset);
|
447 |
} else {
|
448 |
$result = $this->dbo->execute($sql);
|
449 |
}
|
450 |
|
451 |
if ($enableLinks) {
|
452 |
/**
|
453 |
* 查询时同时将主键值单独提取出来,
|
454 |
* 并且准备一个以主键值为键名的二维数组用于关联数据的装配
|
455 |
*/
|
456 |
$pkvs = array();
|
457 |
$assocRowset = null;
|
458 |
$rowset = $this->dbo->getAllWithFieldRefs($result, $this->pka, $pkvs, $assocRowset);
|
Filename: /www/wwwroot/qufumarathon.com/APP/Controller/Default.php [1817]
#5 FLEA_Db_TableDataGateway::findAll('pid=', 'sort asc')
ARGS:
Array
(
[0] => pid=
[1] => sort asc
)
SOURCE CODE:
1807 |
|
1808 |
|
1809 |
function actionZanzu()
|
1810 |
{
|
1811 |
$this->tpl->display('App/zanzu.html');
|
1812 |
}
|
1813 |
|
1814 |
#列表
|
1815 |
function actionHuoban()
|
1816 |
{
|
1817 |
$zzs = $this->Zzsfl->findAll('pid='.$_GET['matchid'],'sort asc');
|
1818 |
foreach($zzs as $k=>$v)
|
1819 |
{
|
1820 |
$zzs[$k]['res'] = $this->Zhanzhu->findAll("pid=".$v['id'],"sort asc");
|
1821 |
}
|
1822 |
$this->tpl->assign('zzs', $zzs);
|
1823 |
|
1824 |
$this->tpl->display('App/huoban.html');
|
1825 |
}
|
1826 |
|
1827 |
#列表
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Dispatcher/Simple.php [120]
#4 Controller_Default::actionHuoban()
ARGS:
Array
(
)
SOURCE CODE:
110 |
}
|
111 |
if (method_exists($controller, '__setDispatcher')) {
|
112 |
$controller->__setDispatcher($this);
|
113 |
}
|
114 |
|
115 |
// 调用 _beforeExecute() 方法
|
116 |
if (method_exists($controller, '_beforeExecute')) {
|
117 |
$controller->_beforeExecute($actionMethod);
|
118 |
}
|
119 |
// 执行 action 方法
|
120 |
$ret = $controller->{$actionMethod}();
|
121 |
// 调用 _afterExecute() 方法
|
122 |
if (method_exists($controller, '_afterExecute')) {
|
123 |
$controller->_afterExecute($actionMethod);
|
124 |
}
|
125 |
return $ret;
|
126 |
} while (false);
|
127 |
|
128 |
if ($callback) {
|
129 |
// 检查是否调用应用程序设置的错误处理程序
|
130 |
$args = array($controllerName, $actionName, $controllerClass);
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Dispatcher/Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('Default', 'Huoban', 'Controller_Default')
ARGS:
Array
(
[0] => Default
[1] => Huoban
[2] => Controller_Default
)
SOURCE CODE:
67 |
|
68 |
/**
|
69 |
* 从请求中分析 Controller、Action 和 Package 名字,然后执行指定的 Action 方法
|
70 |
*
|
71 |
* @return mixed
|
72 |
*/
|
73 |
function dispatching()
|
74 |
{
|
75 |
$controllerName = $this->getControllerName();
|
76 |
$actionName = $this->getActionName();
|
77 |
return $this->_executeAction($controllerName, $actionName, $this->getControllerClass($controllerName));
|
78 |
}
|
79 |
|
80 |
/**
|
81 |
* 执行指定的 Action 方法
|
82 |
*
|
83 |
* @param string $controllerName
|
84 |
* @param string $actionName
|
85 |
* @param string $controllerClass
|
86 |
*
|
87 |
* @return mixed
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA.php [816]
#2 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
806 |
require_once($MVCPackageFilename);
|
807 |
}
|
808 |
FLEA::init();
|
809 |
|
810 |
// 载入调度器并转发请求到控制器
|
811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
812 |
FLEA::loadClass($dispatcherClass);
|
813 |
|
814 |
$dispatcher =& new $dispatcherClass($_GET);
|
815 |
FLEA::register($dispatcher, $dispatcherClass);
|
816 |
$dispatcher->dispatching();
|
817 |
}
|
818 |
|
819 |
/**
|
820 |
* 准备运行环境
|
821 |
*
|
822 |
* @param boolean $loadMVC
|
823 |
*/
|
824 |
function init($loadMVC = false)
|
825 |
{
|
826 |
static $firstTime = true;
|
Filename: /www/wwwroot/qufumarathon.com/index.php [24]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
14 |
'languages' => array('中文簡體'=>'cn','繁體'=>'tw'),
|
15 |
'defaultLanguage' => $_SESSION['lang']?$_SESSION['lang']:'cn',
|
16 |
'languageFilesDir' => $dirname."/LANGUAGE",
|
17 |
);
|
18 |
$dataConfigFilename = $dirname.'/CONFIG/DSN.php';
|
19 |
FLEA::loadAppInf($dataConfigFilename);
|
20 |
FLEA::loadAppInf($appInf);
|
21 |
FLEA::import(APP_DIR);
|
22 |
|
23 |
|
24 |
FLEA::runMVC();
|
25 |
?> |