Skip to content

Commit f80fc1e

Browse files
committed
Fix bug in createindex
1 parent 64920a7 commit f80fc1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SQLite.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ function createindex!{S<:AbstractString}(db::DB,table::AbstractString,index::Abs
267267
u = unique ? "UNIQUE" : ""
268268
exists = ifnotexists ? "IF NOT EXISTS" : ""
269269
transaction(db) do
270-
execute!(db,"CREATE $u INDEX $exists $(esc_id(index)) ON $(esc_id(table)) ($(esc_id(cols))")
270+
execute!(db,"CREATE $u INDEX $exists $(esc_id(index)) ON $(esc_id(table)) ($(esc_id(cols)))")
271271
end
272272
execute!(db,"ANALYZE $index")
273273
return
@@ -282,7 +282,7 @@ function removeduplicates!{T <: AbstractString}(db,table::AbstractString,cols::A
282282
colsstr = chop(colsstr)
283283
transaction(db) do
284284
execute!(db,"DELETE FROM $(esc_id(table)) WHERE _ROWID_ NOT IN (SELECT max(_ROWID_) from $(esc_id(table)) GROUP BY $(colsstr));")
285-
end
285+
end
286286
execute!(db,"ANALYZE $table")
287287
return
288288
end

0 commit comments

Comments
 (0)