Code Monkey home page Code Monkey logo

Comments (4)

vorburger avatar vorburger commented on May 30, 2024

@bjornblomqvist thanks for your interest in this project. A Pull Request to remedy this would be welcome!

from mariadb4j.

bjornblomqvist avatar bjornblomqvist commented on May 30, 2024

So what solution do you think is the right way to go? Also do you need a test for this before you would accept a pull requests?

from mariadb4j.

vorburger avatar vorburger commented on May 30, 2024

So what solution do you think is the right way to go?

I like your idea of just treating an emptyString the same as a null value, probably by just using password != null && !password.isEmpty() in https://github.com/vorburger/MariaDB4j/blob/master/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DB.java#L259 ... you could also do it not just for password but also for username & dbName perhaps?

Also do you need a test for this before you would accept a pull requests?

Yes that would be great, please. I'm assuming that it should be trivial to create one... just add an additional line to https://github.com/vorburger/MariaDB4j/blob/master/mariaDB4j/src/test/java/ch/vorburger/mariadb4j/tests/MariaDB4jSampleTutorialTest.java#L75 with "" instead of null - as that tests sources() with null already.

from mariadb4j.

vorburger avatar vorburger commented on May 30, 2024

Closing as Done, following merge of https://github.com/vorburger/MariaDB4j/pull/67!

from mariadb4j.

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.