注册

Connection.debug 报错 Error occurs when call 'dpi_get_diag_rec'

张三 2025/08/26 110 0

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】: dm8
【操作系统】:windows 11
【CPU】: amd64
【问题描述】*:Connection.debug 报错 Error occurs when call 'dpi_get_diag_rec'

按照官方文档装了python驱动,普通数据库查询也是正常的,但是调用conn.debug()会报错。另外问一下,开了这个debug日志会在客户端打印出debug信息吗?

import dmPython
conn=dmPython.connect(user='xxx',password='xxx',server= 'localhost',port=5236)
cursor = conn.cursor()
cursor.execute('select name from dialog')
values = cursor.fetchall()
print(values) # 能正常打印

conn.debug() # 执行报错
>>> conn.debug()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
dmPython.InternalError: Error occurs when call 'dpi_get_diag_rec'
回答 0
暂无回答
扫一扫
联系客服