ydb-platform / ydb-go-sdk

Pure Go native and database/sql driver for YDB
https://ydb.tech
Apache License 2.0
138 stars 73 forks source link

bug with decimal representation #1234

Closed laskoviymishka closed 4 months ago

laskoviymishka commented 4 months ago

Bug Report

YDB GO SDK version: v3.66.3

YDB driver after updates start to corrupt some decimal data:

Incomming:

*scanner.rawConverter
{[0 0 0 0 0 0 0 0 0 0 0 0 2 250 240 128] 22 9}

YDB Representation:

{
  "pricing_quantity": "0.05"
}

Environment

Current behavior:

Driver representation:

"050000000"

Expected behavior:

Old driver representation:

0.05

Steps to reproduce:

Related code:

insert short code snippets here

Other information: