Giter Site home page Giter Site logo

Fixed text truncated about myanon HOT 10 CLOSED

ppomes avatar ppomes commented on June 7, 2024 1
Fixed text truncated

from myanon.

Comments (10)

Mat-Moo avatar Mat-Moo commented on June 7, 2024 1

Looks good, thank you!

from myanon.

ppomes avatar ppomes commented on June 7, 2024

we have a rule
``key = fixed '0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF'
64 chars, going into a varchar(64) column, but the last character is being truncated, which then effects all our other data. If we try and extend this, we get an error as > 64 characters. Really love a fix :) or push of new code if you have any

That should be simple, stay tuned! (I need a few days to find time)

from myanon.

Mat-Moo avatar Mat-Moo commented on June 7, 2024

Would be a life saver - ok maybe a tad OTT, but would really help me out of a pickle

from myanon.

ppomes avatar ppomes commented on June 7, 2024

This should be fixed now, can you pull and try again? Thanks!

from myanon.

Mat-Moo avatar Mat-Moo commented on June 7, 2024

Ok, that works.... however we have some other fixed data types (going into varchars) which are longer than 64 :) So we use a key per user to encrypt other data, so things like an address become quite long. Is there any reason this couldn't just be 1026 (for 1024) max? Is there a memory constraint? I'm not up to speed with c, so not sure how this runs internally etc.

from myanon.

ppomes avatar ppomes commented on June 7, 2024

Thanks for the feedback. There is no memory constraint, limits are arbitrary. Maybe you could upload a scenario (dump, config, and the result you would like) to see what I can fix? I am not sure to understand your issue (you can control each field length in the config file). I would be happy to help you!

from myanon.

Mat-Moo avatar Mat-Moo commented on June 7, 2024
tables = {
    `banks` = {
        `address` = fixed '53b5d7742e226ac82b347f885730f86135dd42622ad158855af509c6ffaed6d6c2ba76a4d1749da23f618f86ba921220'
    }
}

and that's a short one

from myanon.

ppomes avatar ppomes commented on June 7, 2024
tables = {
    `banks` = {
        `address` = fixed '53b5d7742e226ac82b347f885730f86135dd42622ad158855af509c6ffaed6d6c2ba76a4d1749da23f618f86ba921220'
    }
}

and that's a short one

Which limit do you need? 1024 (unquoted) is enough?

from myanon.

Mat-Moo avatar Mat-Moo commented on June 7, 2024

I would imaging 1024 should be enough, but as the string is encrypted you can see that 64 chars isn't enough in this case :)

from myanon.

ppomes avatar ppomes commented on June 7, 2024

I just added support for 1024 chars, can you pull and try again? Thanks ! (if you need more, no problem)

from myanon.

Related Issues (15)

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.