this is not an error, it is only a warning. There should be no difference in behavior between py2.5 and 2.6. The code you have below may not necessarily create any data if you didn't commit your transaction.
On Apr 5, 2009, at 6:05 PM, Michael Mileusnich wrote: > I have been working with Python 2.5 and SQLAlchemy. I recently > upgraded to Python 2.6 on my Windows machine and I receive the > following message: > > D:\Python26\lib\site-packages\sqlalchemy-0.5.3-py2.6.egg\sqlalchemy > \databases\ms > sql.py:977: DeprecationWarning: object.__new__() takes no parameters > return super(MSSQLDialect, cls).__new__(cls, *args, **kwargs) > > I have a script that creates my tables and inserts data. The tables > get created however they are empty. > > Here is some example code that does not work: > > from sqlalchemy.orm import * > > from db import * > > session = getsession() > > new_serv = server(SERVER = "test") > session.add(new_serv) > session.flush() > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---