Comments (6)
Confirmed working now. Thanks so much! Definitely starring this repo.
from go-dbase.
Hello FourShour,
Thank you for the issue and your kind words.
I will take a closer look at the problem and try to find a solution. But I already suspect what the problem is.
I noticed that this only happens when "Text" is greater than 56 characters.
A record of a memo file is limited by the block size specified in the header. When writing, I do not yet check whether this limitation is exceeded by the data.
from go-dbase.
Thanks for the quick response! I'll try out the fix when I can at the beginning of the week.
I'm migrating/integrating with an old FoxPro application so dbase is new to me. Do I need to do something special in order to write a a memo value greater than the block size? I see in the DBF file that there are values that are larger than 56 characters.
from go-dbase.
It is not possible to write a record to a memo file that is larger than the block size. If you still want to save this data, you have to change the database schema and increase the size.
Can you send me the files so I can take a closer look?
from go-dbase.
I attached the dbf and fpt files. I'm new to this tech stack so sorry if it's something obvious.
The column I'm having issues with is the TRAITE column
from go-dbase.
Unfortunately, I don't know much about DBF either, but apparently I have an error in my library that is based on a comprehension problem. A memo entry can very well be larger than one block. I will look into fixing this.
from go-dbase.
Related Issues (20)
- Index out of range exception when creating ColumnModification with identical column/key names HOT 1
- Improve error handling by defining a custom error type
- windows Filename is throwing dbase-io-windows-findfile-1 HOT 12
- Implement the possibility to create a table + memo file from scratch
- Add support for CDX index files HOT 5
- Searching for records by specifying a particular field value
- Support more foxpro field data types
- Fully support variable sized fields like varchar or varbinary
- Automatic incrementation is currently not supported
- Support other dbase/foxpro files (.dbc, .dbf, .frx, .lbx, .mnx, .pjx, .scx, .vcx) HOT 3
- Support more encodings by default HOT 1
- Encoding to Struct fails for Type T when value is 0 or null HOT 4
- Null flag column is missing when writing HOT 1
- Add read ReaderCloser HOT 2
- `undefined: syscall.Handle` errors on macOS HOT 7
- Fix code scanning alert - Incorrect conversion between integer types
- Datetime conversion does not work HOT 2
- Fix links in README HOT 1
- Inconsistent space trimming HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-dbase.