Git Product home page Git Product logo

Comments (3)

bcardiff avatar bcardiff commented on July 4, 2024

changing
{13, auth_plugin_data_length - 8}.max - 1]
to
auth_plugin_data_length < 22 ? 12 : (auth_plugin_data_length - 9)
should be sign-safe.

or changing auth_plugin_data_length to auth_plugin_data_length.to_i16 (or to_i32) should be enough since auth_plugin_data_length is UInt8.

There is no further reason than trying to implement the internals of mysql protocol. And, as you see there are chances to miss some details :-(. Thanks for jumping in crystal-mysql!

If the latest proposal work feel free to submit a PR. :-)

from crystal-mysql.

zachad avatar zachad commented on July 4, 2024

I've been having fun exploring Crystal more and more, and it's awesome to see all the work you have put in! And I'm all for implementing internal protocols. No better way to learn what's happening under the hood. See PR #4 hopefully working around this issue.

from crystal-mysql.

bcardiff avatar bcardiff commented on July 4, 2024

PR merged at 6db306e.

I had fun with mysql internals too.

There are plenty of things pending to be implemented. And we try to move forward crystal-db family all together, but feel free to collaborate with the missing parts you come across. Some parts might be worth a discussion towards a general api though.

Thanks for the charming words 💚

from crystal-mysql.

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.