Giter Site home page Giter Site logo

Comments (7)

RemiKalbe avatar RemiKalbe commented on August 16, 2024 1

No problem, I'll open a PR.

from sea-query.

tyt2y3 avatar tyt2y3 commented on August 16, 2024

https://www.cockroachlabs.com/docs/stable/int.html
image

You have to change all 32 bit integers to 64 bit ones.

But strictly speaking, it should not be a problem, because CockroachDB 'should be' syntax compatible with Postgres. So the problems are only how we drive the queries.

Let us know if you succeeded.

from sea-query.

RemiKalbe avatar RemiKalbe commented on August 16, 2024

I changed

struct CharacterStruct {
    id: i32,
    character: String,
    font_size: i32,
}

to

struct CharacterStruct {
    id: i64,
    character: String,
    font_size: i64,
}

and

let id: i32 = row.try_get(0).unwrap();

to

let id: i64 = row.try_get(0).unwrap();

But I'm still getting the same error, so I tried changing:

.integer()

to

.big_integer()

still the same error.
Did I forget something?

from sea-query.

billy1624 avatar billy1624 commented on August 16, 2024

Hi @RemiKalbe, so after all these changes. You still got the same error?

from sea-query.

tyt2y3 avatar tyt2y3 commented on August 16, 2024

I believe the literals have to be changed to 64 bit too, e.g. 12u64 24u64

from sea-query.

RemiKalbe avatar RemiKalbe commented on August 16, 2024

Indeed, changing the literals make it work. I also tried the JSON example, and it also works. Thank you 😄

from sea-query.

tyt2y3 avatar tyt2y3 commented on August 16, 2024

Great. If you don't mind, perhaps you can publish your fork? May be we can add it to our examples!

from sea-query.

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.