GithubHelp home page GithubHelp logo

Comments (10)

Rishi321 avatar Rishi321 commented on May 13, 2024

I see the issue
Line 2449 auto len = ::strlen(row_value);
strlen will stop at a null.
Still scratching my head on how to get around this.

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

Hi. The only way I see is to give up using sqlite3_exec in get_all but use prepared statement. But let me think a little bit more - probably there is a way to solve it with easier

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

http://sqlite.1065341.n5.nabble.com/Blob-in-the-callback-of-sqlite3-exec-td8604.html

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

Please use select now for a few days - I'll change get_all implementation so it will use prepared statement. I think this is a best solution cause prepared statement gives more functionality

from sqlite_orm.

Rishi321 avatar Rishi321 commented on May 13, 2024

Aah, thanks
select is also using the sql_exec callback method, so I'm using the iterate and manually checking the for the conditions for now

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

@Rishi321 thanks for your patience

from sqlite_orm.

Rishi321 avatar Rishi321 commented on May 13, 2024

Thank you for your quick redressal :)

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

@Rishi321 please check latest commits. I've refactored get_all with statements and added tests based on your case. I'm gonna refactor select and close the issue. Is it ok for you?

from sqlite_orm.

Rishi321 avatar Rishi321 commented on May 13, 2024

Works. Perfect. ๐Ÿ‘

from sqlite_orm.

fnc12 avatar fnc12 commented on May 13, 2024

I didn't finish refactoring within select function so I leave the issue opened until it is done

from sqlite_orm.

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.