1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

'DB2ExecutionContext_ibm_db' object has no attribute 'compiled_parameters'

Discussão em 'Outras Linguagens' iniciado por Stack, Abril 22, 2021.

  1. Stack

    Stack Membro Participativo

    I ran into a problem while querying on ibm-db2 cloud.

    I checked the db connection. The connection is okay but whenever I try to query something (anything) it gives me this error.

    'DB2ExecutionContext_ibm_db' object has no attribute 'compiled_parameters'

    a snapshot of the error -

    ---------------------------------------------------------------------------
    AttributeError Traceback (most recent call last)
    <ipython-input-22-ec7ae9958cc4> in <module>
    ......
    ......

    ~/conda/envs/python/lib/python3.6/site-packages/ibm_db_sa/ibm_db.py in pre_exec(self)
    47 def pre_exec(self):
    48 # if a single execute, check for outparams
    ---> 49 if len(self.compiled_parameters) == 1:
    50 for bindparam in self.compiled.binds.values():
    51 if bindparam.isoutparam:

    AttributeError: 'DB2ExecutionContext_ibm_db' object has no attribute 'compiled_parameters'


    Any solution ?

    Continue reading...

Compartilhe esta Página