I 'm using multi-database, and I try:
cursor = connection.cursor().using(profile.dbname)
cursor.execute('select id_retorno from prc_sequenciadora(' + str(profile.idempresa) + ', "VENDA_PEDIDO", "IDVENDA_PEDIDO", 0, 0)')# calls PROCEDURE named LOG_MESSAGE which resides in MY_UTIL Package
cursor.fetchall()
But this error appears:
AttributeError at /comerx/pedidos/novo/ 'Cursor' object has no attribute 'using'
Here is traceback: http://pastebin.com/CD7B8BxJ
Thanks for all