Skip to content

Commit

Permalink
Added a regression test for #2399.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mewes committed May 16, 2014
1 parent 86b8fa4 commit 96a52e3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/rql_test/src/regression/2399.yaml
@@ -0,0 +1,16 @@
desc: 2399 table corruption after certain updates
tests:

- rb: r.db('test').table_create('t2399')
ot: ({'created':1})
def: t = r.db('test').table('t2399')

- rb: t.insert({})

- rb: t.update({:a => {:b => r.literal({})}})

- rb: t.coerce_to("ARRAY").count()
ot: (1)

- rb: r.db('test').table_drop('t2399')
ot: ({'dropped':1})

0 comments on commit 96a52e3

Please sign in to comment.