juxj / sqlautocode

Automatically exported from code.google.com/p/sqlautocode
Other
0 stars 0 forks source link

repr(_BinaryExpression) and repr(_instancemethod) embedded in CheckConstraint #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a test database on localhost with attached MySQL dump file
2. sqlautocode mysql://{user}:{passwd}@localhost -o test.py -s test -e
3. View the generated file

What is the expected output? What do you see instead?
The CheckConstraint should have a string as the first argument with an optional 
_create_rule. It has instead what appears to be a repr() of
two objects.

What version of the product are you using? On what operating system?
Fedora Core 15
Python 2.7.1
SQLAlchemy-0.7.3
sqlautocode==0.7

Please provide any additional information below.
On a minor note - once I comment out the two lines that error I also need to 
change line 6 from 'from sqlalchemy.databases.mysql import *' to 'from 
sqlalchemy.databases import mysql'.

Original issue reported on code.google.com by wdbake...@gmail.com on 25 Oct 2011 at 4:39

Attachments:

GoogleCodeExporter commented 9 years ago
I am having this same issue, did anyone reach any solution to this?

Original comment by mosab.ah...@gmail.com on 20 Feb 2012 at 3:06

GoogleCodeExporter commented 9 years ago
Fixed in revision 08a7912b8a09.

Original comment by ghet...@gmail.com on 24 Sep 2012 at 10:40