Skip to content

Commit 255afe7

Browse files
committed
Merge pull request #3 from johnmyleswhite/master
Use OS supplied temporary files
2 parents 787055f + 60abfc1 commit 255afe7

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
@@ -202,7 +202,7 @@ end #sqlite module
202202

203203
function sqldf(q::String)
204204
handle = Array(Ptr{Void},1)
205-
file = "__temp__"
205+
file = tempname()
206206
Sqlite.sqlite3_open(file,handle)
207207
conn = Sqlite.SqliteDB(file,handle[1],Sqlite.null_resultset)
208208
#todo: do we need to change column names at all?
@@ -233,4 +233,4 @@ function sqldf(q::String)
233233
end
234234
Sqlite.sqlite3_close_v2(conn.handle)
235235
return result
236-
end
236+
end

0 commit comments

Comments
 (0)