Skip to content
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

cast pg-decimal/numeric to tnt-decimal #25

Open
parihaaraka opened this issue Oct 14, 2021 · 0 comments
Open

cast pg-decimal/numeric to tnt-decimal #25

parihaaraka opened this issue Oct 14, 2021 · 0 comments
Labels
feature A new functionality

Comments

@parihaaraka
Copy link

subj

  • or just leave it as is (text - because text format proto is used), otherwise we need to cast the fields to text on pg side and vice versa on tnt-side
@Totktonada Totktonada added feature A new functionality teamE labels Oct 27, 2021
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 <sergeyb@tarantool.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

3 participants