[10501] PDOException in Connection.php line 385

SQLSTATE[42000]: Syntax error or access violation: 1305 PROCEDURE tzaqpx_com.prevnext does not exist

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. } catch (\Throwable $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. } catch (\Exception $e) {
  17. if ($this->isBreak($e)) {
  18. return $this->close()->query($sql, $bind, $master, $pdo);
  19. }

Call Stack

  1. in Connection.php line 385
  2. at Connection->query('call prevnext('sys_n...')
  3. at call_user_func_array([object(Mysql), 'query'], ['call prevnext('sys_n...']) in Db.php line 178
  4. at Db::__callStatic('query', ['call prevnext('sys_n...']) in Model_news.php line 28
  5. at Model_news::getPrevNext('70', 33) in News.php line 28
  6. at News->newsdetail()
  7. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  8. at App::invokeMethod([object(News), 'newsdetail'], []) in App.php line 611
  9. at App::module(['index', 'news', 'newsdetail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'newsdetail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('D:\wwwroot\tzaqpx.co...') in index.php line 30

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1305
Driver Error Message PROCEDURE tzaqpx_com.prevnext does not exist
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1305 PROCEDURE tzaqpx_com.prevnext does not exist
Error SQL call prevnext('sys_news',70,' ordernum asc,addtime desc',' where module_id=33 and is_delete=0 and status=1')
Database Config
type mysql
hostname 127.0.0.1
database tzaqpx_com
hostport 1400
dsn
params []
charset utf8
prefix
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data

detailid
70
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
D:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-E8MTEP1JAO4
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
32
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_FCGI_MAX_REQUESTS
2000
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
WIN-E8MTEP1JAO4$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_HOST
tzaqpx.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
tzaqpx.com
SERVER_PORT
80
SERVER_ADDR
192.168.10.200
REMOTE_PORT
35378
REMOTE_ADDR
54.224.90.25
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
d:/wwwroot/tzaqpx.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/news/newsdetail?detailid=70
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/news/newsdetail&detailid=70
PATH_INFO
/index/news/newsdetail
SCRIPT_FILENAME
d:/wwwroot/tzaqpx.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711623263.4579
REQUEST_TIME
1711623263
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\tzaqpx.com\public/../application/
EXTEND_PATH
../extend/
THINK_VERSION
5.0.24
THINK_START_TIME
1711623263.4584
THINK_START_MEM
385400
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\tzaqpx.com\thinkphp\
LIB_PATH
D:\wwwroot\tzaqpx.com\thinkphp\library\
CORE_PATH
D:\wwwroot\tzaqpx.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\tzaqpx.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\tzaqpx.com\
VENDOR_PATH
D:\wwwroot\tzaqpx.com\vendor\
RUNTIME_PATH
D:\wwwroot\tzaqpx.com\runtime\
LOG_PATH
D:\wwwroot\tzaqpx.com\runtime\log\
CACHE_PATH
D:\wwwroot\tzaqpx.com\runtime\cache\
TEMP_PATH
D:\wwwroot\tzaqpx.com\runtime\temp\
CONF_PATH
D:\wwwroot\tzaqpx.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
PHP_OS_FAMILY
Windows