From: Ethan Furman <et...@stoneleaf.us>
Date: Wed, 31 Oct 2012 08:27:42 -0700
Local: Wed, Oct 31 2012 11:27 am
Subject: Re: [python-dBase] Re: format difference for visual foxpro 9
The Budiman wrote:
Each null byte stores the null state for up to eight fields; so if there are more than eight > Hello, > Do you think it's right if we change in line 1871:
> if ord(null_data[byte]) >> bit & 1:
> to
> if ord(null_data[0]) >> bit & 1:
> Lets see the context:
> nullable = flags & NULLABLE
> As far as I can tell, the enclosing function (_retrieve_field_value) nullable fields then null_data can be more than one byte long. bit is which bit in the byte represents the field in question. So to make a long story short, no, changing to null_data[0] will not work once there are more than One possible problem, though, is that (I think) the varchar fields also use the null_data area to ~Ethan~
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.
| ||||||||||||||