Re: [sqlalchemy] printing a 'compiler' results in AttributeError: 'PGCompiler_psycopg2' object has no attribute 'string'

2015-06-30 Thread Mike Bayer
On 6/30/15 7:21 PM, Jonathon Nelson wrote: On Tue, Jun 30, 2015 at 6:18 PM, Mike Bayer mike...@zzzcomputing.com mailto:mike...@zzzcomputing.com wrote: how are you getting this Compiler object? the .string element is created within the constructor. It was actually as a result of

Re: [sqlalchemy] printing a 'compiler' results in AttributeError: 'PGCompiler_psycopg2' object has no attribute 'string'

2015-06-30 Thread Jonathon Nelson
On Tue, Jun 30, 2015 at 6:18 PM, Mike Bayer mike...@zzzcomputing.com wrote: how are you getting this Compiler object? the .string element is created within the constructor. It was actually as a result of trying to figure out how to use the code you gave me for the psycopg2 percentile

[sqlalchemy] printing a 'compiler' results in AttributeError: 'PGCompiler_psycopg2' object has no attribute 'string'

2015-06-30 Thread Jonathon Nelson
When trying to debug something, I tried to acquire the string representation of a 'compiler' object. I got this error: File /usr/lib64/python2.7/site-packages/sqlalchemy/sql/compiler.py, line 218, in __str__ return self.string or '' AttributeError: 'PGCompiler_psycopg2' object has no

Re: [sqlalchemy] printing a 'compiler' results in AttributeError: 'PGCompiler_psycopg2' object has no attribute 'string'

2015-06-30 Thread Mike Bayer
how are you getting this Compiler object? the .string element is created within the constructor. On 6/30/15 6:32 PM, Jonathon Nelson wrote: When trying to debug something, I tried to acquire the string representation of a 'compiler' object. I got this error: File