Giter VIP home page Giter VIP logo

Comments (4)

zcmaye avatar zcmaye commented on August 20, 2024
CREATE TABLE test_datetime
(
    id INT PRIMARY KEY AUTO_INCREMENT,
    fdate DATE NOT NULL,
    ftime TIME NOT NULL,
    fdate_time DATETIME NOT NULL
);

execution query.

sqlpp::mysql::connection db(config);
for(const auto& row : db(sqlpp::select(sqlpp::all_of(tb)).from(tb).unconditionally())) 
{
      std::cout << row.id << " " << row.fdate << " " << row.ftime << " " << row.fdateTime << std::endl;
}

Bad, wrong.

[build] C:\Program Files (x86)\sqlpp11\include\sqlpp11/data_types/time_of_day/result_field.h(46): error C2039: "_bind_time_of_day_result": not is "sqlpp::mysql::char_result_t"  a memeber.
[build] C:\Program Files (x86)\sqlpp11\include\sqlpp11/mysql/char_result.h(44): note: see also “sqlpp::mysql::char_result_t”  statement

I checked mysql/char_result.h really don't have _bind_time_of_day_resul function.

help me,thanks!

from sqlpp11.

rbock avatar rbock commented on August 20, 2024

Thanks for the report. I added the missing functions plus respective tests.

Hope this helps?

from sqlpp11.

zcmaye avatar zcmaye commented on August 20, 2024

All right, thank you

Thanks for the report. I added the missing functions plus respective tests.

Hope this helps?

All right, thank you

from sqlpp11.

rbock avatar rbock commented on August 20, 2024

Thanks for the confirmation.

from sqlpp11.

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.