[sqlalchemy] flush() issued, SQL seen, but database not updated?

2010-12-26 Thread jerryji
Hi, I have been pulling my hair the whole day today: I have a web application that runs fine, however, during unittest I noticed that the test (PostgreSQL) database is not updated even after I issue the flush() and see the SQL statement, which inserts fine by itself in psql -- (Pdb) list 73

Re: [sqlalchemy] flush() issued, SQL seen, but database not updated?

2010-12-26 Thread Warwick Prince
Hi Jerry Looks to me like you will need to swap your .flush for a .commit.commit will flush for you, then actually commit the changes to the DB. :-) Cheers Warwick Hi, I have been pulling my hair the whole day today: I have a web application that runs fine, however, during unittest I