okfn/webstore — Issue #57: Strange behaviour with INSERT/CREATE/DROP
Author: wwaites
Created: 2012-01-20 17:20:21+00:00
State: open

Doing sql operations with webstore-client such as

CREATE TABLE foo (...)
DROP TABLE IF EXISTS foo;
INSERT INTO foo (bar, baz) SELECT * FROM zzz

gets a response from the server that looks like

{'state': 'error', 'message': 'OK'}

which causes the client to raise a rather confusing error message:

Traceback (most recent call last):
File "det/query.py", line 51, in
wsdb.query(q)
File "/usr/home/ww/src/webstore-client/webstore/client/__init__.py", line 233, in query
headers={'Content-Type': 'application/json'})
File "/usr/home/ww/src/webstore-client/webstore/client/__init__.py", line 181, in _request
raise WebstoreClientException(response, data)
webstore.client.WebstoreClientException: OK