Giter Site home page Giter Site logo

Comments (5)

simolus3 avatar simolus3 commented on September 6, 2024

This is definitely a bug, thanks!

I am struggling to understand how an exception could be thrown though. If you look at the check, error 101 (SQLITE_DONE) should be handled there:

if (resultCode != SqlError.SQLITE_OK &&
resultCode != SqlError.SQLITE_DONE) {
throwException(

I then thought that we might be missing data by forgetting to call sqlite3_reset, but it seems like (at least my) sqlite3 implicitly resets a statement after _step() has returned SQLITE_DONE.

So while this should be fixed in the library, I'm wondering which sqlite3 (the native library, not the Dart package) you are using? Something from your OS or a custom build? What does sqlite3.version return?

from sqlite3.dart.

simolus3 avatar simolus3 commented on September 6, 2024

Ah well, the test indicates the problem - looks like the sqlite3 on macOS is behaving differently.

from sqlite3.dart.

pti avatar pti commented on September 6, 2024

Yep, I was using macOS - print(sqlite3.version) outputs:

Version(libVersion: 3.39.5, sourceId: 2022-10-14 20:58:05 554764a6e721fab307c63a4f98cd958c8428a5d9d8edfde951858d6fd02daapl, number: 3039005)

On Linux the exception isn't thrown, version:

Version(libVersion: 3.37.2, sourceId: 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5dalt1, number: 3037002)

from sqlite3.dart.

simolus3 avatar simolus3 commented on September 6, 2024

Fixed in sqlite3: 1.9.3 - thanks again for the report!

from sqlite3.dart.

pti avatar pti commented on September 6, 2024

That was quick! 👍

from sqlite3.dart.

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.