Coder Social home page Coder Social logo

Comments (3)

sgrif avatar sgrif commented on May 23, 2024 1

All integer types are supported for use where appropriate. Unfortunately, the error messages can sometimes be unhelpful due to rust-lang/rust#28894. The trait that it's failing to find is probably AsExpression<types::Integer>. What's allowed here is based on the type of id. It seems likely that your column is of type Integer or Serial, which are both 32 bit signed integers. You can't write 32bit_column.eq(1i64). For BigInteger, you can use 64 bit integers as well. However keep in mind that this type is also signed, and you can only use i64 not u64. PostgreSQL does not have an unsigned integer type.

If my assumptions about your app are incorrect, let me know and I'll re-open.

from diesel.

JohnMH avatar JohnMH commented on May 23, 2024

Why is there no "sql type" for unsigned integers? In MySQL, for example, it is perfectly valid to have an INT UNSIGNED.

from diesel.

weiznich avatar weiznich commented on May 23, 2024

@JohnMH See #1561 for unsigned integers in MySQL

from diesel.

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.