Comments (7)
No problem, I'll open a PR.
from sea-query.
https://www.cockroachlabs.com/docs/stable/int.html
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.
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.
Hi @RemiKalbe, so after all these changes. You still got the same error?
from sea-query.
I believe the literals have to be changed to 64 bit too, e.g. 12u64
24u64
from sea-query.
Indeed, changing the literals make it work. I also tried the JSON example, and it also works. Thank you 😄
from sea-query.
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)
- postgres: silently uses signed integers when unsigned integers are specified in schema HOT 2
- `Table::drop()` with multiple `.table` when using sqlite3 causes invalid sql
- Add support for `Arc<str>` value
- Error running sqlx_any in example after upgrading sqlx to 0.7 HOT 1
- rusqlite - bundled forces static linkage HOT 2
- Postgres: Support creating functional indexes HOT 1
- All index hints appear after the last `from` statement
- Support for Postgres comments when creating tables and columns HOT 1
- postgres: create typed prepared statements
- Invalid window definitions in sqlite
- sea-query-binder has time version `<0.3.35` HOT 1
- Support for Postgres BTree index `INCLUDE (<col>, ...)`
- Parentheses for complex LIKE query is different than the same Postgres ILIKE query HOT 1
- Missing Expr::tbl HOT 1
- `CHECK` constraint with a name
- fails to build HOT 3
- join_as constructs invalid sql join
- Exposition of Postgres functions `to_tsquery`, `to_tsvector`, `phraseto_tsquery`, `plainto_tsquery`, `websearch_to_tsquery` are unergonomic because they only accept the regconfig as an u32
- Introduce `md5` SQL function HOT 3
- [BUG] Enum_def macro errror HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sea-query.