GithubHelp home page GithubHelp logo

mariadb-corporation / dev-example-todo Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 14.0 3.98 MB

License: MIT License

Java 14.98% JavaScript 36.12% Python 7.07% HTML 2.83% CSS 4.60% C++ 7.02% C# 27.38%

dev-example-todo's People

Contributors

alejandro-du avatar dependabot[bot] avatar plug-n-play avatar rhedgpeth avatar rusher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dev-example-todo's Issues

the cpp word can't work on windows

i don't know why that the following error happened
image
i do link code with dll and lib which download on official link and install it with msi

for os version reasion?

pls help me!!

Error using sample app

Hey, I have an error but I don't understand where it comes from yet I use the example.

cpp console example app leaks memory

if you run the example app code with address sanatizer it shows that it leaks memory.

==451983==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 256 byte(s) in 1 object(s) allocated from:
    #0 0x7fdb7d4f8f27 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:99
    #1 0x7fdb7d3bbdd0 in sql::mariadb::SelectResultSet::create(sql::mariadb::Results*, sql::mariadb::Protocol*, sql::mariadb::capi::st_mysql*, bool) /home/buildbot/src/src/SelectResultSet.cpp:79

The issue is the result sets, eg this:

        sql::ResultSet *res = stmnt->executeQuery("select * from tasks");

needs to be wrapped in a unique_ptr to ensure it gets cleaned up at end of scope:

    std::unique_ptr<sql::ResultSet> res(stmnt->executeQuery("select * from tasks"));

This applies to every result_set in the example app. ie every time stmnt->execute*() is called

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.