Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behaviour with INSERT/CREATE/DROP #57

Open
wwaites opened this issue Jan 20, 2012 · 2 comments
Open

Strange behaviour with INSERT/CREATE/DROP #57

wwaites opened this issue Jan 20, 2012 · 2 comments

Comments

@wwaites
Copy link

wwaites commented Jan 20, 2012

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
@rufuspollock
Copy link
Member

Are the operations actually failing or is a case where operations pass but we get an erroneous message?

@wwaites
Copy link
Author

wwaites commented Jan 21, 2012

The operations do not actually fail. Just the response is bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants