steffengy / tiberius

TDS 7.4 (mssql / Microsoft SQL Server) async driver for rust. Fork at: https://github.com/prisma/tiberius
Apache License 2.0
151 stars 2 forks source link

Erro when select a column with float with size 8 #97

Closed cmbergamo closed 5 years ago

cmbergamo commented 5 years ago

Where I ran the following sql, retun "thread 'main' panicked at 'unsupported fixed type decoding: Float8'"

SELECT c5_num, RTRIM(a1_nome), c5_emissao, (c5_valmerc - c5_valdesc) FROM sc5

The c5_valmerc and the c5_valdesc are float with length 8 float_error

steffengy commented 5 years ago

What MSSQL version are you using?

cmbergamo commented 5 years ago

Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64) Aug 22 2017 17:04:49 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Windows Server 2012 R2 Datacenter 6.3 (Build 9600: ) (Hypervisor)

By the way, thx for sharing your knowledge.

steffengy commented 5 years ago

Thanks, fixed.

cmbergamo commented 5 years ago

The version 0.3.2 already has the correction for this problem???

steffengy commented 5 years ago

0.3.2 is 10 days old, so no, 0.3.3 will have it

cmbergamo commented 5 years ago

Ok. Thank you again. Nice work!