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

executemultiple fallback only executes the first statement. #42

Closed
joshday opened this issue Nov 12, 2021 · 1 comment
Closed

executemultiple fallback only executes the first statement. #42

joshday opened this issue Nov 12, 2021 · 1 comment

Comments

@joshday
Copy link

joshday commented Nov 12, 2021

executemultiple(stmt::Statement, params) = (execute(stmt, params),)

Not sure if the line above is the right place for an error/warning, but I would expect something in the pipeline to tell me that SQLite.jl doesn't support executemultiple.

julia> db = SQLite.DB();

julia> DBInterface.executemultiple(db, "CREATE TABLE temp(x INTEGER); CREATE TABLE temp2(x INTEGER);");

julia> SQLite.tables(db)
(name = ["temp"],)
@quinnj
Copy link
Member

quinnj commented Nov 14, 2021

This isn't a DBInterface thing, but an sqlite thing, in that it doesn't support executing multiple statements at a time (note not an SQLite.jl thing, but sqlite thing).

@quinnj quinnj closed this as completed Nov 14, 2021
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

2 participants