Hi

I am facing a different problem in inheritance.
I am using the single table inheritance through declarative.
http://www.sqlalchemy.org/docs/05/reference/ext/declarative.html#single-table-inheritance

b=Base()
b.id='xxx'
b.name='xxx'
b.type='type1'
I am manually setting the type column of my base class.
but when i try to commit,it gives the IntegrityError
base.type may not be NULL u'INSERT INTO bases (id, name, type,
address, login, password) VALUES (?, ?, ?, ?, ?, ?)' ['xxx', 'xxx',
None, None, 'xxx','xxx']

I checked this thread, 
http://groups.google.com/group/sqlalchemy/browse_thread/thread/c646007dce37b11a
but I dont have access to the subclass to set the __class__


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to