Re: [cx-oracle-users] Problem with Python 2.5 and named bind variables
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2006-11-16 14:59:23
|
Yes, I noticed that myself and have already fixed it. I hope to have a new release in the next few weeks that will include this and a few other things. On 11/16/06, Paul Metcalfe <pau...@gm...> wrote: > I have just run into this problem on Linux x86_64, with the symptoms > exactly as reported previously. > > I suspect that it comes down to the difference between int and > Py_ssize_t. Building cx_Oracle-4.2.1 produces (among others) the > warnings > > Cursor.c: In function 'Cursor_SetBindVariables': > Cursor.c:937: warning: passing argument 2 of 'PyDict_Next' from > incompatible pointer type > Cursor.c: In function 'Cursor_PerformBind': > Cursor.c:972: warning: passing argument 2 of 'PyDict_Next' from > incompatible pointer type > Cursor.c: In function 'Cursor_SetInputSizes': > Cursor.c:1793: warning: passing argument 2 of 'PyDict_Next' from > incompatible pointer type > > Changing all of these int's to Py_ssize_t's fixes the bind variable problem. > > [ System information: > > Linux xp-paulm 2.6.18-1-amd64 #1 SMP Tue Oct 10 00:09:20 UTC 2006 > x86_64 GNU/Linux > > Python 2.5 (release25-maint, Oct 29 2006, 12:14:25) > [GCC 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > cx_Oracle.version = 4.2.1 ] > > Hope this helps, > > -- > pdm > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |