[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-21 Thread Noufal
> The MyISAM storage engine doesn't retain foreign key information- to > autoload FKs you must create the table with a storage engine that > supports FKs such as InnoDB. That looks like: > > Table('stats', metadata, ..columns.., mysql_engine='InnodB') > > You can also use ALTER TABLE via mysq

[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-20 Thread jason kirtland
Noufal wrote: > On Sep 20, 10:34 pm, Noufal <[EMAIL PROTECTED]> wrote: > [..] >> I create the tables using SQLAlchemy. I'll send you the output in a >> day, I'm away from the machine where this code is right now. > > The output of the create table column looks like this > > CREATE TABLE `stats`

[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-20 Thread Noufal
On Sep 20, 10:34 pm, Noufal <[EMAIL PROTECTED]> wrote: [..] > I create the tables using SQLAlchemy. I'll send you the output in a > day, I'm away from the machine where this code is right now. The output of the create table column looks like this CREATE TABLE `stats` ( `sid` int(11) NOT NULL

[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-20 Thread Noufal
> Did you originally create the tables through SQLAlchemy or are you > reflecting an existing schema? In either case I'd need to see the > output of SHOW CREATE TABLES for the problem table to make a diagnosis. I create the tables using SQLAlchemy. I'll send you the output in a day, I'm away

[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-20 Thread jason kirtland
Noufal wrote: > Hello everyone, > I've recently picked up SQLAlchemy for a project that I'm working > on. I couldn't get a version newer than 0.3.10 (admin bureaucracy) and > have to use this. > > I create two tables like so > run_table = sa.Table('runs',md, >

[sqlalchemy] Re: Auto load problem with SQLAlchemy 0.3.10 and mySQL

2007-09-20 Thread King Simon-NFHD78
Noufal wrote: > > > I create two tables like so > run_table = sa.Table('runs',md, > sa.Column('rid', sa.Integer, > primary_key=True), > sa.Column('cmdline', sa.String(250)), > sa.Column('hostname', s