MemoryError fixed!

"Valerie R. Coffman" <[email protected]>
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
>
>
>I think that maxlength is the problem here.  Can you try a little
>experiment for me...  Try this patch:
>
>--- Sybase.py	23 Jan 2003 10:11:02 -0000	1.56
>+++ Sybase.py	24 Jan 2003 01:01:13 -0000
>@@ -158,6 +158,8 @@
>         fmt.count = count
>         if fmt.datatype == CS_VARBINARY_TYPE:
>             fmt.datatype = CS_BINARY_TYPE
>+        if fmt.maxlength > 65536:
>+            fmt.maxlength = 65536
>         status, buf = cmd.ct_bind(i + 1, fmt)
>         if status != CS_SUCCEED:
>             raise Error('ct_bind')
>
>  
>
Dave,

This patch works!  (I have edited for typos).  Furthermore, it works 
whether or not the text fields are all at the end.  I don't get the 
other error I was talking about as long as I don't select a field with a 
unique type.

Thanks!
Valerie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.