Skip to content

unable to use [u]int64 as parameter #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
parihaaraka opened this issue Oct 15, 2021 · 1 comment
Open

unable to use [u]int64 as parameter #26

parihaaraka opened this issue Oct 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@parihaaraka
Copy link

> cn:execute("select $1 as arg", 1)
---
- - - arg: 1
- true
...

> cn:execute("select $1 as arg", 1ULL)
---
- - - []
- true
...
@Totktonada Totktonada added bug Something isn't working teamE labels Oct 15, 2021
@parihaaraka
Copy link
Author

PR

ligurio added a commit to parihaaraka/pg that referenced this issue Jul 18, 2022
[REMOVE BEFORE MERGE] Changes proposed in fixup commit: documentation,
regression tests, code style.

Patch adds support of PostgreSQL decimal numbers - it is possible to
choose a Lua/Tarantool type that will be used for casting  values with
NUMERIC type [1]. By default Lua "number" type is used, the same
behaviour was used before changes. Additionally user could choose two
other types: Lua "string" and Tarantool's decimal type [2], [3].

Fixes tarantool#26
Fixes tarantool#25

1. https://www.postgresql.org/docs/current/datatype-oid.html
2. https://www.tarantool.io/en/doc/latest/reference/reference_lua/decimal/
3. https://www.tarantool.io/en/doc/latest/book/box/data_model/#data-types

Co-authored-by: Sergey Bronnikov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants