Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Corrupted Resultsets on RHEL 5.3 64 bit
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yannick Gingras  
View profile  
 More options May 12 2009, 4:02 pm
From: Yannick Gingras <yging...@ygingras.net>
Date: Tue, 12 May 2009 16:02:36 -0400
Local: Tues, May 12 2009 4:02 pm
Subject: Corrupted Resultsets on RHEL 5.3 64 bit

Hi,
  I'm trying to use pyodbc on RHEL 5.3 64 bit but all my strings are
filled with garbage after position 1024.  Here is an example:

  import pyodbc
  conn = pyodbc.connect('DRIVER={SQL
Server};UID=foo;PWD=bar;DATABASE=qux;SERVER=quux;TDS_Version=8.0')
  conn.execute("select %r" % ("=" * 1030))

This is what I get back:

[('======================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== =========================================================================== ===================================================\x00\x01\x00i;S+',
)]

This is the content of my /etc/odbcinst.ini:
------------------------------
[SQL Server]
Description = FreeTDS Driver
Driver = /usr/lib64/libtdsodbc.so.0
UsageCount = 1
------------------------------

When I try to do the same on Ubuntu 8.10, both 32 bit and 64 bit, I
get expected result, that is, a string of "=" 1030 character long.

On RHEL 5.3, unixodbc is 2.2.11-7.1, on Ubuntu it's 2.2.11-16build2,
what ever that means.  I'm running Pyodbc 2.1.5 on Python 2.5.

Anyone has an idea on what can cause this and how it can be solved?

--
Yannick Gingras
http://ygingras.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ray Van Dolson  
View profile  
 More options May 12 2009, 4:13 pm
From: Ray Van Dolson <ra...@bludgeon.org>
Date: Tue, 12 May 2009 13:13:16 -0700
Local: Tues, May 12 2009 4:13 pm
Subject: Re: Corrupted Resultsets on RHEL 5.3 64 bit

On Tue, May 12, 2009 at 04:02:36PM -0400, Yannick Gingras wrote:

> Hi,
>   I'm trying to use pyodbc on RHEL 5.3 64 bit but all my strings are
> filled with garbage after position 1024.  Here is an example:

>   import pyodbc
>   conn = pyodbc.connect('DRIVER={SQL
> Server};UID=foo;PWD=bar;DATABASE=qux;SERVER=quux;TDS_Version=8.0')
>   conn.execute("select %r" % ("=" * 1030))

> This is what I get back:

Are you using a hand built pyodbc or the one from EPEL?

Ray


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yannick Gingras  
View profile  
 More options May 13 2009, 9:42 am
From: Yannick Gingras <yging...@ygingras.net>
Date: Wed, 13 May 2009 09:42:02 -0400
Local: Wed, May 13 2009 9:42 am
Subject: Re: Corrupted Resultsets on RHEL 5.3 64 bit
On Tuesday 12 May 2009 16:13:16 Ray Van Dolson wrote:

> Are you using a hand built pyodbc or the one from EPEL?

I easy_installed pyodbc; RHEL does not ship with Python 2.5 so we need
to install all our Python packages by hand.

--
Yannick Gingras
http://ygingras.net/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »