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

Attempt to add new column during write of multiple rows in a single transaction fails #44

Open
rufuspollock opened this issue Nov 4, 2011 · 1 comment
Assignees

Comments

@rufuspollock
Copy link
Member

Attempt this sort of thing:

import webstore.client
db, table = webstore.client.URL('http://localhost:5001/test/test/data')
rows = [
    { 'a': '1' },
    { 'b': '1' }
    ]
table.writerows(rows)

It will fail with:

webstore.client.WebstoreClientException: (OperationalError) database is locked u'\nALTER TABLE data ADD b TEXT' ()

@rufuspollock
Copy link
Member Author

General feeling (@pudo and me) is that this is a wontfix but we should put up a prominent health warning and explain why this is a problem.

@ghost ghost assigned rufuspollock Nov 9, 2011
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

1 participant