Re: Using different types in PyDO2

Stefan Neumann <[email protected]> Mon, 23 May 2005 17:48:24 +0200
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
Jacob Smullyan wrote:
> I'm sorry your data is getting mangled.  What versions of mysql and
> MySQLdb are you using?  

I'm sorry. Actually it was my mistake. I called the function getSome()
like this:

all=Rule.getSome("id != %d",self.defaultID)

I was thinking, that I have to use %d because defaultID should be an
int. But I got this message:

TypeError: int argument required

So I conclude, defaultID had to be an string because:

all=Rule.getSome("id != %s",self.defaultID)

worked. ;-)

I am really sorry and glad that you helped so quick.

Thanks a lot.

Stefan


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click