User Tools

Site Tools


Sidebar

docker:1.8_sql

Q. Does Tarantool 1.8.1 SQL syntax work in Docker? I tried many times, but it looks like it doesn't. For example, I created a space like this:

unix/:/var/run/tarantool/tarantool.sock> CREATE TABLE table1 (column1 INTEGER PRIMARY KEY, column2 VARCHAR(100));
---
...

After that I tried to add a tuple like this:

unix/:/var/run/tarantool/tarantool.sock> INSERT INTO table1 VALUES (1, 'A')
---
- error: SQL logic error or missing database
...

(2017)

A.Try this with our latest image:

docker pull tarantool/tarantool:1.8
docker run --rm -t -i tarantool/tarantool:1.8
\set language sql
CREATE TABLE table1 (column1 INTEGER PRIMARY KEY, column2 VARCHAR(100));
INSERT INTO table1 VALUES (1, 'A');

Comments

Enter your comment. Wiki syntax is allowed:
P​ O​ R U S
 
docker/1.8_sql.txt · Last modified: 2018/05/25 18:44 by eabates

Real Time Web Analytics