tarantool / document

Effortless JSON storage for Tarantool
BSD 2-Clause "Simplified" License
24 stars 4 forks source link

cannot use example ,does this code work in tarantool 1.7? #1

Closed despiegk closed 6 years ago

despiegk commented 6 years ago
tarantool> doc.create_index(box.space.test, 'primary',{parts={'id', 'unsigned'}, if_not_exists=true})
---
- error: 'Illegal parameters, format[1]: name (string) is expected'
...
bigbes commented 6 years ago

probably, you mean:

box.space.test:create_index('primary', { parts = {1, 'unsigned'}, if_not_exists = true})

Where have you found this code block?

knazarov commented 6 years ago

@bigbes This code is correct. The module wasn't compatible with latest 1.7, but I've fixed it.

@despiegk please try now.

bigbes commented 6 years ago

Sorry, i've thought about wrong repository