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

Enhance error handling in the sqlite module #66057

Closed
vstinner opened this issue Jun 24, 2014 · 2 comments
Closed

Enhance error handling in the sqlite module #66057

vstinner opened this issue Jun 24, 2014 · 2 comments

Comments

@vstinner
Copy link
Member

BPO 21858
Nosy @vstinner
Files
  • sqlite_error_handling-wip.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-06-26.21:48:24.107>
    created_at = <Date 2014-06-24.09:50:54.952>
    labels = []
    title = 'Enhance error handling in the sqlite module'
    updated_at = <Date 2014-06-26.21:48:27.441>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2014-06-26.21:48:27.441>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-06-26.21:48:24.107>
    closer = 'vstinner'
    components = []
    creation = <Date 2014-06-24.09:50:54.952>
    creator = 'vstinner'
    dependencies = []
    files = ['35768']
    hgrepos = []
    issue_num = 21858
    keywords = ['patch']
    message_count = 2.0
    messages = ['221445', '221651']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue21858'
    versions = ['Python 3.4', 'Python 3.5']

    @vstinner
    Copy link
    Member Author

    The _sqlite module doesn't handle correctly Python errors. It may loose the current Python exception: test_sqlite fails when the patch of the issue bpo-21857 is applied.

    Attached patch is a work-in-progress patch to fail earlier when Python raises an exception.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jun 26, 2014

    New changeset 62612b195cb5 by Victor Stinner in branch '3.4':
    Issue bpo-21858: Better handling of Python exceptions in the sqlite3 module.
    http://hg.python.org/cpython/rev/62612b195cb5

    New changeset 169171da66fa by Victor Stinner in branch 'default':
    (Merge 3.4) Issue bpo-21858: Better handling of Python exceptions in the sqlite3
    http://hg.python.org/cpython/rev/169171da66fa

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    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