Skip to content

Strange behaviour with INSERT/CREATE/DROP #57

Description

@wwaites

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 <module>
    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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions