Skip to content

Commit 5fff174

Browse files
committed
Add compat for take
1 parent 40a282c commit 5fff174

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ DataStreams 0.1.0
66
DataFrames
77
WeakRefStrings 0.1.3
88
LegacyStrings
9+
Compat 0.9.5

src/SQLite.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__precompile__(true)
22
module SQLite
33

4-
using DataStreams, DataFrames, WeakRefStrings, LegacyStrings
4+
using DataStreams, DataFrames, WeakRefStrings, LegacyStrings, Compat
55
import LegacyStrings: UTF16String
66

77
export Data, DataFrame
@@ -158,7 +158,7 @@ function sqlserialize(x)
158158
# that the array has been serialized
159159
s = Serialization(x)
160160
serialize(t,s)
161-
return takebuf_array(t)
161+
return take!(t)
162162
end
163163
# fallback method to bind arbitrary julia `val` to the parameter at index `i` (object is serialized)
164164
bind!(stmt::Stmt,i::Int,val) = bind!(stmt,i,sqlserialize(val))

0 commit comments

Comments
 (0)