Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

SQL Decimal type does not work correctly #41

@kutsurak

Description

@kutsurak

Querying inserted decimals does not return correct results. The problem is probably in insert.

>>> import monetdblite as mdbl
>>> c = mdbl.make_connection('/tmp/tstdb')
>>> c.set_autocommit(True)
>>> cc = c.cursor()
>>> cc.execute("CREATE TABLE v (f decimal(3,2))")
0
>>> cc.insert('v', {'f': [1.3]})
>>> cc.execute('select * from v')
1
>>> cc.fetchall()
[[0.01]]

The result should be [[1.3]].

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions