Giter VIP home page Giter VIP logo

Comments (7)

mvorisek avatar mvorisek commented on September 3, 2024 1

Probably some fixed bug :)

from data.

mvorisek avatar mvorisek commented on September 3, 2024

The fields are strictly typed and if type is null, string type is implied for BC.

Given this fact, the exception seems correct to me. Can we close this issue or why true should imply null or 1?

from data.

mkrecek234 avatar mkrecek234 commented on September 3, 2024

Before boolean was stored as "1" (true) or null (false) if stored in string field, now it throws an exception. Shouldn't it store as before?

from data.

mvorisek avatar mvorisek commented on September 3, 2024

Wdym by store?

In php, we store it natively - true / false, in database, we store it by 1 / 0. Everything seems to be correct to me, working and tested.

from data.

mkrecek234 avatar mkrecek234 commented on September 3, 2024

Will try to make repro code - I saved a false value to a string field, and got "must not be boolean" as an exception. However, if you save a false boolean value to a string field it should convert it to null, shouldn't it? And true should be saved as 1 in a string field.

from data.

mvorisek avatar mvorisek commented on September 3, 2024

No, it should not, it is a type error. Other people will open an issue false is not converted to 0... You have the rights to reopen this issue in case you have some new evidence, but the problem you reported here is known & wanted behaviour.

from data.

mkrecek234 avatar mkrecek234 commented on September 3, 2024

This then is a BC break, as it was automagically converted before, wasn't it? I like automatic type conversions, but am fine either way. And I don't care if false is converted to "0" or null in a string, all fine.

from data.

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.