Git Product home page Git Product logo

Comments (3)

tomix26 avatar tomix26 commented on July 28, 2024

Normally this would be configured in this way:

@Bean
public Consumer<EmbeddedPostgres.Builder> embeddedPostgresCustomizer() {
    return builder -> builder.setConnectConfig("stringtype", "unspecified");
}

But there is a bug in implementation of otj-pg-embedded library on which we depend. So it does not work as it should. The connection parameters are used only when a database is starting, but not to connect to a running database.

I already have some open pull requests to that project, but nothing has been happening for a long time. So I plan to fork the project and then I'll be able to fix this issue.

from embedded-database-spring-test.

denizengin87 avatar denizengin87 commented on July 28, 2024

Hi,

thx for the answer. So, using EmbeddedPostgres.Builder.setConnectConfig() was the right way to do it.
Could you estimate when milestone 1.3.3 will be released? Sounds like a bigger change, which I can't await :)
Shortly, I was able to work around the problem by using a second flyway sql file for my tests, in which I declared the type of the column as a varchar, but now I want to add functionality to my query using the jsonb operator @> , that's why I can't use the workaround any longer.

from embedded-database-spring-test.

tomix26 avatar tomix26 commented on July 28, 2024

I estimate that it could be finished in a week or two. Unfortunately there is no simple workaround for this issue.

from embedded-database-spring-test.

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.