On Friday 27 February 2009 02:58:45 pm Ricardo Aráoz wrote:
> Hey! Where did you get that from? That's neither official 8 version, nor
> the recommended modified pymssql (as per Ed's site).
> Anyway, in your version I'd change :
>
> x = "'" + string.replace(str(x), "'", "''") + "'"
>
> to :
>
> x = "'" + x.replace("'", "''") + "'"
>
> so you use proper x's replace method (if x is unicode unicode.replace
> should be used).
>
>
> I would update Dabo's modified pymssql with all these changes first.
> Next week I'll check version 1.0.1 and see if I can post something similar.
>
> Ricardo.That's a good question. To honest I don't recall what/where/why I made those changes back in 2007. And of course I gave Larry, Bill, and others this copy of my pymssql. And of course my file was used for the testing. to recap: We don't need to change dbMsSQL.py. Ed's copy of pymssql.py needs to be updated. Do you agree? -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
