Skip to content

Commit

Permalink
excluded large2 for monetdb
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed May 15, 2024
1 parent c8410f5 commit 91deda3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ def test_serialize_decimal_large(cur):
cur.execute('INSERT INTO t(i, a) VALUES (0, ?)', (2**77,))

def test_serialize_decimal_large2(cur):
cur.execute('DROP TABLE IF EXISTS t')
cur.execute('CREATE TABLE t(i INTEGER NOT NULL, a DECIMAL NOT NULL, PRIMARY KEY(i))')
cur.execute('INSERT INTO t(i, a) VALUES (0, ?)', (2**77,))
cur.execute('SELECT a FROM t')
def test_serialize_decimal_large2(cur):
if os.environ['default-store'] != 'monetdb':
cur.execute('DROP TABLE IF EXISTS t')
cur.execute('CREATE TABLE t(i INTEGER NOT NULL, a DECIMAL NOT NULL, PRIMARY KEY(i))')
cur.execute('INSERT INTO t(i, a) VALUES (0, ?)', (2**77,))
cur.execute('SELECT a FROM t')

assert cur.fetchone()[0] == 151115727451828646838272
assert cur.fetchone() is None
assert cur.fetchone()[0] == 151115727451828646838272
assert cur.fetchone() is None


def test_deserialize_number(cur):
Expand Down

0 comments on commit 91deda3

Please sign in to comment.