From d-arntson at uchicago.edu Wed Feb 23 12:28:14 2011 From: d-arntson at uchicago.edu (Dale Arntson) Date: Wed Feb 23 19:28:21 2011 Subject: [egenix-users] Problem with mxodbc 3.1 and Sybase 15.5 In-Reply-To: <4D23B5CA.2010607@egenix.com> References: slrnhvksl1.r36.aclark@aclark.aclark.net <4D13ABBD.8020705@uchicago.edu> <4D13AF01.7000003@egenix.com> <4D143673.6000609@uchicago.edu> <4D226642.80603@uchicago.edu> <4D23972E.5020608@egenix.com> <4D23AB65.1010604@uchicago.edu> <4D23B5CA.2010607@egenix.com> Message-ID: <4D6551BE.7020405@uchicago.edu> Hi Marc-Andre, Do you have a time-frame for working around the problem in the Sybase 15 ODBC driver which causes None values to be bound to SQL_CHAR? Just asking, so I can plan accordingly. Thanks, -dale On 1/4/2011 6:05 PM, M.-A. Lemburg wrote: > Dale Arntson wrote: >> The odbc trace log is attached. > > Thanks. It appears that the Sybase ODBC driver doesn't like the > fact that mxODBC always binds None (NULL) values using SQL_CHAR - > since the data type doesn't matter when passing in NULL values. > This is in line with the ODBC standard and works well with > all other ODBC drivers being used with mxODBC. > > No idea why the error message says "Implicit conversion from datatype 'CHAR' to 'SMALLINT' is not > allowed.". > > We already have a whole set of work-arounds for the Sybase > driver in mxODBC, so I suppose we'll have to find yet another > one for this particular quirk of the driver... > > Regarding the other error message "The parameter of type 61 did not have a valid value." > I can't really say what's wrong here, since ODBC doesn't have a > type code 61 and the log doesn't show such a code being used either. > >> Thanks, >> >> -dale >> >> On 1/4/2011 3:54 PM, M.-A. Lemburg wrote: >>> Hi Dale, >>> >>> could you try enabling the ODBC tracing function in the Windows >>> ODBC manager and send us the ODBC log ? >>> >>> Here's the documentation on how to enable tracing in the >>> MS ODBC Manager: >>> >>> http://support.microsoft.com/kb/274551 >>> >>> If standard tracing doesn't work, you could try the >>> Visual Studio Analyzer: >>> >>> http://msdn.microsoft.com/en-us/library/aa234848.aspx >>> >>> Thanks, > From charlie at egenix.com Thu Feb 24 12:20:39 2011 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 24 12:20:45 2011 Subject: [egenix-users] Problem with mxodbc 3.1 and Sybase 15.5 In-Reply-To: <4D6551BE.7020405@uchicago.edu> References: <4D13ABBD.8020705@uchicago.edu> <4D13AF01.7000003@egenix.com> <4D143673.6000609@uchicago.edu> <4D226642.80603@uchicago.edu> <4D23972E.5020608@egenix.com> <4D23AB65.1010604@uchicago.edu> <4D23B5CA.2010607@egenix.com> <4D6551BE.7020405@uchicago.edu> Message-ID: Am 23.02.2011, 19:28 Uhr, schrieb Dale Arntson : > Hi Marc-Andre, > Do you have a time-frame for working around the problem in the Sybase > 15 ODBC driver which causes None values to be bound to SQL_CHAR? Just > asking, so I can plan accordingly. Hi Dale, we hope to have a build with this by the end of March. Note, this might not be a full release. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From d-arntson at uchicago.edu Thu Feb 24 13:26:00 2011 From: d-arntson at uchicago.edu (Dale Arntson) Date: Thu Feb 24 20:26:06 2011 Subject: [egenix-users] Problem with mxodbc 3.1 and Sybase 15.5 In-Reply-To: References: <4D13ABBD.8020705@uchicago.edu> <4D13AF01.7000003@egenix.com> <4D143673.6000609@uchicago.edu> <4D226642.80603@uchicago.edu> <4D23972E.5020608@egenix.com> <4D23AB65.1010604@uchicago.edu> <4D23B5CA.2010607@egenix.com> <4D6551BE.7020405@uchicago.edu> Message-ID: <4D66B0C8.6090701@uchicago.edu> Beautiful. Let me know if you want someone to test the changes. -dale On 2/24/2011 5:20 AM, Charlie Clark wrote: > Am 23.02.2011, 19:28 Uhr, schrieb Dale Arntson : > >> Hi Marc-Andre, >> Do you have a time-frame for working around the problem in the Sybase >> 15 ODBC driver which causes None values to be bound to SQL_CHAR? Just >> asking, so I can plan accordingly. > > Hi Dale, > > we hope to have a build with this by the end of March. Note, this might > not be a full release. > > Charlie