BTW, notifications of patches and bug changes will be coming to this
list now.
SourceForge.net wrote:
> Bugs item #1344338, was opened at 2005-10-31 17:28
> Message generated for change (Tracker Item Submitted) made by Item Submitter
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1344338&group_id=74338
>
> Please note that this message will contain a full copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: MySQL
> Group: SQLObject release (specify)
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Andy Dustman (adustman)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: 0.7.0: autoCommit from URI wrong type
>
> Initial Comment:
> In dbconnection.py, when the URI is parsed, there is no
> special treatment or type conversion of the autoCommit
> parameter, so it is always stored as a string. In the
> MySQL case (mysql.mysqlconnection), this causes the
> call to conn.autocommit() to always, since that API
> function requires an integer (booleans work too).
>
> A workaround for this is to change
> conn.autocommit(self.autoCommit) to
> conn.autocommit(int(self.autoCommit)), though only
> works if an integer is used as a parameter; it fails if
> True or False is used.
>
> Note that sybase support has this sequence in
> SybaseConnection.__init__():
>
> autoCommit = kw.get('autoCommit')
> if autoCommit:
> autoCommmit = int(autoCommit)
> else:
> autoCommit = None
> kw['autoCommit'] = autoCommit
> DBAPI.__init__(self, **kw)
>
> A similar block of code would also work for MySQLdb.
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1344338&group_id=74338
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> sqlobject-cvs mailing list
> sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlobject-cvs
--
Ian Bicking / ia...@co... / http://blog.ianbicking.org
|