Skip to content

load!(db ; analyze=true) is broken #276

@bks-nist

Description

@bks-nist

Attempting to call SQLite.load!(db; analyze=true) give an error that nm is undefined; which it is. The below patch fixes it:

diff --git a/src/tables.jl b/src/tables.jl
diff --git a/src/tables.jl b/src/tables.jl
index 163ea37..9f1b6c0 100644
--- a/src/tables.jl
+++ b/src/tables.jl
@@ -262,7 +262,7 @@ function load!(sch::Tables.Schema, rows, db::DB, name::AbstractString, db_tablei
         end
     end
     _close!(stmt)
-    analyze && execute(db, "ANALYZE $nm")
+    analyze && execute(db, "ANALYZE $name")
     return name
 end

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