'ResultProxy' object has no attribute 'description'

639 views
Skip to first unread message

Larry Martell

unread,
Jul 2, 2021, 2:32:23 PM7/2/21
to sqlal...@googlegroups.com
I have this code:
cursor = self._session.execute("SELECT NEWID() as token")
results = self.fetch_results(cursor)
And I get this error:

'ResultProxy' object has no attribute 'description'

How can I get around this issue?

Mike Bayer

unread,
Jul 2, 2021, 4:28:03 PM7/2/21
to noreply-spamdigest via sqlalchemy
I'm not familiar with this issue and would need to see a complete stack trace and preferably a simple test script (MCVE) as well, but at the very least a stack trace, as well as SQLAlchemy version in use, database dialect / driver in use.  thanks.
-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper


To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.


Larry Martell

unread,
Jul 2, 2021, 5:15:26 PM7/2/21
to sqlal...@googlegroups.com
I was able to do this and have it work:

results = self._session.execute("SELECT NEWID() as token").first()[0]
Reply all
Reply to author
Forward
0 new messages