Git Product home page Git Product logo

Comments (5)

flash-gordon avatar flash-gordon commented on July 25, 2024

That was interesting... First of all, the fail you see caused by quite poorly maintained pg_jdbc gem. I sent a PR about the issue headius/jruby-pg#32 After fixing it on my local my machine I found that now specs are failing at equality check here because SQLite on jdbc returns Fixnum instead of BigDecimal despite table field was declared as numeric. Everything works fine if we return 10000.1 instead of a round number so I spent some time searching for the root of the problem. It turned out that jdbc-sqlite uses result type in the first place (see L859) and only after that it looks at the field type which leads to a really silly bug (it is a bug, am I right?): your column value will have different types depending on what value was in the first record of the result set. WAT
I'll try to use jdbc-postgres instead of pg_jdbc and will raise an issue on the jdbc-sqlite's bitbucket (I'm not sure if they'll fix it). ugh

from rom-sql.

flash-gordon avatar flash-gordon commented on July 25, 2024

OK, they moved to GH. The code remained the same.

from rom-sql.

flash-gordon avatar flash-gordon commented on July 25, 2024

I raised an issue xerial/sqlite-jdbc#112
I doubt it will be resolved though, I think we should update the specs to use fraction values for balance field. Oh god, what a hack...

from rom-sql.

solnic avatar solnic commented on July 25, 2024

Can we make a special case spec for jruby with a TODO comment?

from rom-sql.

flash-gordon avatar flash-gordon commented on July 25, 2024

Sure, I've made a branch for the issue 48d89fb

from rom-sql.

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.