Re: [Sqlalchemy-users] bugs...

2006-05-26 Thread Michael Bayer
vladimir -changeset 1515 fixes both these issues.keep them coming.On May 26, 2006, at 12:03 PM, Vladimir Iliev wrote:from sqlalchemy import * from datetime import datetime metadata = BoundMetaData('sqlite:///', echo=False) products_table = Table('products', metadata,    Column('product_id',

[Sqlalchemy-users] bugs...

2006-05-26 Thread Vladimir Iliev
hi, i think i've hit another 2 bugs/features today. #1 AFAICS there's something with the mapper inheritance, that makes cascade="all, delete-orphaned" not working. #2 i'm getting an error when i try to access a polymorphic property, if some of it's contained objects has a defered property. thanks

Re: [Sqlalchemy-users] Bugs report?

2005-12-18 Thread Michael Bayer
heh, you have a table with one column that auto-increments. when you want to INSERT into it, theres no data to insert. I can make the INSERT statement produce wahtever syntax we want when it wants to insert a totally blank row like that. The problem is, what should the SQL be ? You migh

[Sqlalchemy-users] Bugs report?

2005-12-18 Thread limodou
from sqlalchemy import * import datetime sqlite_engine = create_engine('sqlite://filename=:memory:', echo=True) a = Table('a', sqlite_engine, Column('id', Integer, primary_key = True) ) a.create() class A(object): def __init__(self, id=None): self.id = id A.mapper = mapper(A, a)