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 'LIMIT 1' at line 1"
SQL : "SELECT `lxwm`.`id` AS flea_pkref_id, `lxwm`.* FROM `lxwm` WHERE pid= LIMIT 1"
SQL Error code: "7335941".
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Db/Driver/Mysql.php [187]
#8 FLEA_Db_Driver_Mysql::execute('SELECT `lxwm`.`id` AS flea ...')
ARGS:
Array
(
[0] => SELECT `lxwm`.`id` AS flea_pkref_id, `lxwm`.* FROM `lxwm` WHERE pid= LIMIT 1
)
SOURCE CODE:
177 |
if (!is_null($offset)) {
|
178 |
$sql .= " LIMIT " . (int)$offset;
|
179 |
if (!is_null($length)) {
|
180 |
$sql .= ', ' . (int)$length;
|
181 |
} else {
|
182 |
$sql .= ', 4294967294';
|
183 |
}
|
184 |
} elseif (!is_null($length)) {
|
185 |
$sql .= " LIMIT " . (int)$length;
|
186 |
}
|
187 |
return $this->execute($sql);
|
188 |
}
|
189 |
|
190 |
function metaColumns($table)
|
191 |
{
|
192 |
/**
|
193 |
* C CHAR 或 VARCHAR 类型字段
|
194 |
* X TEXT 或 CLOB 类型字段
|
195 |
* B 二进制数据(BLOB)
|
196 |
* N 数值或者浮点数
|
197 |
* D 日期
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Db/TableDataGateway.php [446]
#7 FLEA_Db_Driver_Mysql::selectLimit('SELECT `lxwm`.`id` AS flea ...', 1, )
ARGS:
Array
(
[0] => SELECT `lxwm`.`id` AS flea_pkref_id, `lxwm`.* FROM `lxwm` WHERE pid=
[1] => 1
[2] =>
)
SOURCE CODE:
436 |
$fields = $this->dbo->qfields($fields, $this->fullTableName, $this->schema);
|
437 |
if ($enableLinks) {
|
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();
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Db/TableDataGateway.php [400]
#6 FLEA_Db_TableDataGateway::findAll('pid=', , 1, '*', 1)
ARGS:
Array
(
[0] => pid=
[1] =>
[2] => 1
[3] => *
[4] => 1
)
SOURCE CODE:
390 |
*
|
391 |
* @param mixed $conditions
|
392 |
* @param string $sort
|
393 |
* @param mixed $fields
|
394 |
* @param mixed $queryLinks
|
395 |
*
|
396 |
* @return array
|
397 |
*/
|
398 |
function & find($conditions, $sort = null, $fields = '*', $queryLinks = true)
|
399 |
{
|
400 |
$rowset =& $this->findAll($conditions, $sort, 1, $fields, $queryLinks);
|
401 |
if (is_array($rowset)) {
|
402 |
$row = reset($rowset);
|
403 |
} else {
|
404 |
$row = false;
|
405 |
}
|
406 |
unset($rowset);
|
407 |
return $row;
|
408 |
}
|
409 |
|
410 |
/**
|
Filename: /www/wwwroot/qufumarathon.com/APP/Controller/Default.php [486]
#5 FLEA_Db_TableDataGateway::find('pid=')
ARGS:
Array
(
[0] => pid=
)
SOURCE CODE:
476 |
js_alert('没有查到该资料','',url('Default','Chaxun',array('matchid'=>$_POST['matchid'])));
|
477 |
}
|
478 |
}
|
479 |
}
|
480 |
$this->tpl->display('App/chaxun.html');
|
481 |
}
|
482 |
|
483 |
#联系我们
|
484 |
function actionContact()
|
485 |
{
|
486 |
$this->tpl->assign('re', $this->Lxwm->find('pid='.$_GET['matchid']));
|
487 |
$this->tpl->display('App/lianxi.html');
|
488 |
}
|
489 |
|
490 |
function actionTuanbao()
|
491 |
{
|
492 |
if($_POST)
|
493 |
{
|
494 |
|
495 |
#判断人数
|
496 |
$re = $this->Tuan->find("sn='".trim($_POST['sn'])."'");
|
Filename: /www/wwwroot/qufumarathon.com/FLEA/FLEA/Dispatcher/Simple.php [120]
#4 Controller_Default::actionContact()
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', 'Contact', 'Controller_Default')
ARGS:
Array
(
[0] => Default
[1] => Contact
[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 |
?> |