Giter Club home page Giter Club logo

Comments (8)

niXman avatar niXman commented on July 22, 2024

Hi,

Does removing the ::sqlpp::tag::must_not_insert property solve the problem?

And yes, ::sqlpp::tag::must_not_insert property should be used for AUTO_INCREMENT columns. Sorry.

from sqlpp11.

niXman avatar niXman commented on July 22, 2024

And yes, ::sqlpp::tag::must_not_insert should be used for AUTO_INCREMENT columns.

Hmm...

#define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_AUTO_INCREMENT(...) \
   ::sqlpp::tag::must_not_update

Should be ::sqlpp::tag::must_not_insert, ::sqlpp::tag::must_not_update here?
I am not a specialist in databases.

from sqlpp11.

isliser avatar isliser commented on July 22, 2024

Hello!

Should be ::sqlpp::tag::must_not_insert, ::sqlpp::tag::must_not_update here?

I suppose it should

I am not a specialist in databases.

Me too :)

from sqlpp11.

isliser avatar isliser commented on July 22, 2024

Postgres allows insert into a field with auto increment declaration, but theoretically others dbms could prohibit it

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

In the end, it is a design decision. If ids have auto increment, do you want your application to mess with that? I haven't had such a case yet. I therefore disallow both insert and update for auto incremented columns.

from sqlpp11.

niXman avatar niXman commented on July 22, 2024

Hi Roland!

Ok, so be it.

from sqlpp11.

niXman avatar niXman commented on July 22, 2024

#73

from sqlpp11.

rbock avatar rbock commented on July 22, 2024

Done on develop

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.