On Mon, Apr 20, 2009 at 02:14:33PM +0200, Piotr Ożarowski wrote:
> [Bastian Blank, 2009-04-20]
> > Creation of schema-qualified tables fails with the sqlite backend. I
> > want to use that in the unittests, so I don't require the real database.
> I'm not sure it's a bug, how would you want SQLAlchemy to handle this in
> SQLite?

Not sure. Either it should bail out on unsupported features or somehow
map them. It would be nice if it would work somehow to write unittests.

> > engine = create_engine('sqlite:///:memory:')
> as a workaround, you can add here this line:
>   engine.execute("ATTACH DATABASE ':memory:' AS test;")

Does not work completely. The "CREATE TABLE" bails out on foreign keys
then.

Bastian

-- 
Worlds are conquered, galaxies destroyed -- but a woman is always a woman.
                -- Kirk, "The Conscience of the King", stardate 2818.9



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to