Git Product home page Git Product logo

Comments (7)

glommer avatar glommer commented on May 20, 2024

Trying to print the Row before we get to that point says this:

i : 5 ("height", Float) => AnyColumn { kind: Sqlite(SqliteColumn { name: height, ordinal: 5, type_info: SqliteTypeInfo(Null) }), type_info: AnyTypeInfo(Sqlite(SqliteTypeInfo(Null))) }

typeinfo being null is suspicious

from chiselstrike.

glommer avatar glommer commented on May 20, 2024

@espindola there is a FIXME from you in that code:

        // FIXME: consider result_column.type_info().is_null() too

So maybe you have an idea.

from chiselstrike.

glommer avatar glommer commented on May 20, 2024

This seems to work when I insert the value "5.23" but crash when I insert the value "5.0"

from chiselstrike.

glommer avatar glommer commented on May 20, 2024

I am very certain this is just a stupid sqlx bug.
I will see if I can spend some time on a small reproducer, but ultimately we'll parse floats by hand.

from chiselstrike.

espindola avatar espindola commented on May 20, 2024

A reproducer would be nice. Can you write a .lit file that crashes? I can reduce from there if you want.

from chiselstrike.

glommer avatar glommer commented on May 20, 2024

cargo test fails and panics with this commit : a0b5d47

The PR that contains that commit doesn't fail, because it moves parsing of floats to a manual parse, but if you cherry pick that commit and do cargo test you will see the failures.

I recommend we don't spend too much time on it, and let the sqlx folks handle it. I opened an issue: launchbadge/sqlx#1596

from chiselstrike.

espindola avatar espindola commented on May 20, 2024

cargo test fails and panics with this commit : a0b5d47

I cannot reproduce that:

% git rev-parse HEAD
a0b5d477e56664ef0eccd22258565b2cf49c44f4
% git clean -fxd
% cargo test
....
Suite Status:

  Passes: 38

from chiselstrike.

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.