Skip to content

python使用dmSQLAlchemy初始化表数据时异常 #2

@betterlch

Description

@betterlch

OS: ky10.aarch64
Version:
dmpython 2.5.30
dmSQLAlchemy 1.4.46
Python version: python 3.9

报错信息:

File "/data/python_env/web/lib64/python3.9/site-packages/dmSQLAlchemy/base.py", line 1587, in _self_process_name
    return self.dialect.quote_module._self_process_name(self, name, reserved_words)
File "/data/python_env/web/lib64/python3.9/site-packages/dmSQLAlchemy/base.py", line 2884, in _self_process_name
    if self._double_percents:
AttributeError: 'DMExecutionContext_dmPython' object has no attribute '_double_percents'

代码看起来是决定是否有必要替换 % 为 %% 的,大部分时候,这个属性都是false,不过这里直接没有这个属性的,辛苦看下是什么问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions