home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 895587441

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/309#issuecomment-895587441 https://api.github.com/repos/simonw/sqlite-utils/issues/309 895587441 IC_kwDOCGYnMM41YZRx 9599 2021-08-09T22:15:45Z 2021-08-09T22:15:45Z OWNER

``` OverflowError: Python int too large to convert to SQLite INTEGER

import sys def find_variables(tb, vars): to_find = list(vars) found = {} for var in to_find: if var in tb.tb_frame.f_locals: vars.remove(var) found[var] = tb.tb_frame.f_locals[var] if vars and tb.tb_next: found.update(find_variables(tb.tb_next, vars)) return found ... find_variables(sys.last_traceback, ["sql", "params"]) {'params': [34223049823094832094802398430298048240], 'sql': 'INSERT INTO [row] ([v]) VALUES (?);'} ```

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
963897111  
Powered by Datasette · Queries took 2.203ms · About: github-to-sqlite