Giter Club home page Giter Club logo

Comments (6)

FourShore avatar FourShore commented on August 19, 2024 2

Confirmed working now. Thanks so much! Definitely starring this repo.

from go-dbase.

Valentin-Kaiser avatar Valentin-Kaiser commented on August 19, 2024

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.

FourShore avatar FourShore commented on August 19, 2024

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.

Valentin-Kaiser avatar Valentin-Kaiser commented on August 19, 2024

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.

FourShore avatar FourShore commented on August 19, 2024

files.zip

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.

Valentin-Kaiser avatar Valentin-Kaiser commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.