Code Monkey home page Code Monkey logo

Comments (2)

Earlopain avatar Earlopain commented on May 27, 2024

Duplicate/Related to #51111?

from rails.

pean avatar pean commented on May 27, 2024

Duplicate/Related to #51111?

Not really, that is about how data is read back from the database and the change that unbounded values now comes back as nil where the before Rails 7.1 came back as Float::INFINITY, which I think is a change to the better.

This is about what how the data is going into the database. When a boundless end is sent to PostgreSQL it is sent as nil which in PostgreSQL will be stored as an excluded end, but if it is sent as infinity it will be stored as inclusive, and be returned as such.

It is possible that this could be considered a PostgreSQL problem too, because range = ["2024-01-01 00:00",infinity] could be the same as range = ["2024-01-01 00:00",], but the latter is saved as ["2024-01-01 00:00",).

From what I can tell, the value that goes into the database has to be modified from nil, to string infinity. But I could be wrong.

from rails.

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.