Skip to content

SQLite.load! fails inside transaction #341

Open
@TheZXCVQ

Description

@TheZXCVQ

When executing example code below

using SQLite
using TypedTables

db=SQLite.DB("test.db")

SQLite.execute(db,"""
CREATE TABLE IF NOT EXISTS test_table (
	id INTEGER PRIMARY KEY,
   	number INTEGER
)
""")

table_to_insert=Table(id=[1,2,3], number=[6,2,8])
try
    SQLite.transaction(db)
    SQLite.load!(table_to_insert, db, "test_table")
    SQLite.commit(db)
catch e
    SQLite.rollback(db)
    throw(e)
end

It on SQLite.load! throws ERROR: SQLiteException("Safety level may not be changed inside a transaction")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions