Skip to content

Commit a7fb57c

Browse files
committed
Update SQLite.jl
Update @Assert message now that nameless parameters are passed as a Vector.
1 parent d62a048 commit a7fb57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SQLite.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function Base.bind{V}(stmt::SQLiteStmt, values::Dict{Symbol, V})
112112
@assert nparams == length(values) "you must provide values for all placeholders"
113113
for i in 1:nparams
114114
name = bytestring(sqlite3_bind_parameter_name(stmt.handle, i))
115-
@assert !isempty(name) "nameless parameters should be passed as a tuple"
115+
@assert !isempty(name) "nameless parameters should be passed as a Vector"
116116
# name is returned with the ':', '@' or '$' at the start
117117
name = name[2:end]
118118
bind(stmt, i, values[symbol(name)])

0 commit comments

Comments
 (0)