Skip to content

Commit fc6557d

Browse files
committed
Fix v0.3 compatibility
1 parent fcbb090 commit fc6557d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/SQLite.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ module SQLite
33
export NULL, SQLiteDB, SQLiteStmt, ResultSet,
44
execute, query, tables, drop, create, append
55

6+
if VERSION < v"0.4.0-dev"
7+
const AbstractString = String
8+
const UInt8 = Uint8
9+
end
10+
611
type SQLiteException <: Exception
712
msg::AbstractString
813
end
@@ -367,7 +372,4 @@ function deleteduplicates(db,table::AbstractString,cols::AbstractString)
367372
return changes(db)
368373
end
369374

370-
end #SQLite module
371-
372-
#TODO
373-
#create julia functions (https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function)
375+
end #SQLite module

0 commit comments

Comments
 (0)