[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-11 Thread TJ Ninneman
> This has been corrected in http://www.sqlalchemy.org/trac/changeset/5641 > . I actually did both things, since using the cursor is the right > thing to do. Thats awesome, thanks so much for your time and help with this! TH --~--~-~--~~~---~--~~ You received

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-11 Thread Michael Trier
On Sat, Jan 10, 2009 at 9:54 PM, Michael Trier wrote: > 1. Override do_begin so that it creates a cursor and then executes on the >> cursor: >> >> def do_begin(self, connection): >> cursor = connection.cursor() >> cursor.execute("SET IMPLICIT_TRANSACTIONS OFF") >> curs

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-10 Thread Michael Trier
> > 1. Override do_begin so that it creates a cursor and then executes on the > cursor: > > def do_begin(self, connection): > cursor = connection.cursor() > cursor.execute("SET IMPLICIT_TRANSACTIONS OFF") > cursor.execute("BEGIN TRANSACTION") > > > this would be appropri

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-10 Thread Michael Bayer
On Jan 10, 2009, at 12:13 AM, Michael Trier wrote: > Work has been hectic this week. Anyway, I looked into this and > pymssql doesn't support execute on the connection. It supports a > straight up query at the module level or it supports execute on the > cursor. So our options are: > > 1

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-09 Thread TJ Ninneman
Thanks Michael, I appreciate it. > As mentioned previously, pymssql support is no where near the level > of support as pyodbc. In addition the maintainer has not updated > this library for several years. Finally, Microsoft warns against > it's use going forward, "When writing new application

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-09 Thread Michael Trier
Hi, On Fri, Jan 9, 2009 at 12:45 PM, t...@twopeasinabucket.com < t...@twopeasinabucket.com> wrote: > > On Jan 7, 10:41 pm, "Michael Trier" wrote: > > Hi, > > > > On Wed, Jan 7, 2009 at 10:43 PM, Jaimy Azle > wrote: > > > > > Hi, > > > > > it seems mssql wrapper for pymmsql DBAPI driver in sqlal

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-09 Thread t...@twopeasinabucket.com
On Jan 7, 10:41 pm, "Michael Trier" wrote: > Hi, > > On Wed, Jan 7, 2009 at 10:43 PM, Jaimy Azle wrote: > > > Hi, > > > it seems mssql wrapper for pymmsql DBAPI driver in sqlalchemy 0.5.0 > > (release) is broken. I haven't check it out with adodbapi, but > > pyodbc confirmed works. > > Thanks fo

[sqlalchemy] Re: MS SQL wrapper for pymssql DBAPI broken in 0.5.0

2009-01-07 Thread Michael Trier
Hi, On Wed, Jan 7, 2009 at 10:43 PM, Jaimy Azle wrote: > > Hi, > > it seems mssql wrapper for pymmsql DBAPI driver in sqlalchemy 0.5.0 > (release) is broken. I haven't check it out with adodbapi, but > pyodbc confirmed works. > Thanks for the test. I will look at this tomorrow. Michael --~--~