-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support VFP Varchar field #9
Comments
Thanks for the detailed description. Do you have a table with this field type and some rows? |
Thanks, will try later. |
Trying out some things in https://github.com/SebastiaanKlippert/go-foxpro-dbf/tree/feature/varchars The functionality you described is implemented in a basic rough form, but it is not trivial. Current status: It also needs some code cleanup and it introduces some problems:
This is currently not implemented, your table does not seem to have this, or I may be reading it wrong, because I don't know how to check it yet. |
You can check the output here if you don't want tot build it. |
For some reason i did not find this paragraph in my researches, but yeah. After some testing, it is indeed like that, i implemented this change (two bits for a varchar) into my C# library. here is a *.dbf with
|
Thanks a lot, will continue working on this later. |
Varchars need special handling
Varchar can be up to 254 characters (always stored with constant size)
To retrieve the size of the Varchar
_NullFlags
column of the Table (it's ahidden
system column)(tables that contain a varchar always contain the
_NullFlags
column)if this is
0
the value should be interpreted asNULL
_NullFlags
-Column can be length-1 or more and represents a bitmap of all fields that can be nullableThe text was updated successfully, but these errors were encountered: