Skip to content

sqlite3: timeout parameter doesn't accept int #5

@ever0de

Description

@ever0de

Current Problem:

struct ConnectArgs {
    timeout: f64,  // ← Doesn't accept int
    ...
}

Error Message:

TypeError: Expected type 'float' but 'int' found.

Test Proof:

# This fails
sqlite3.connect(":memory:", timeout=0)  # 0 is int

# Only this works
sqlite3.connect(":memory:", timeout=0.0)  # 0.0 is float

Affected Tests (11 tests):

  • test_sqlite3/test_transactions.py::TransactionTests
    • test_delete_starts_transaction
    • test_dml_does_not_auto_commit_before
    • test_insert_starts_transaction
    • test_locking
    • test_multiple_cursors_and_iternext
    • test_raise_timeout
    • test_replace_starts_transaction
    • test_rollback_cursor_consistency
    • test_toggle_auto_commit
    • test_update_starts_transaction
    • (+ 1 more)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions