Skip to content

Commit

Permalink
Merge pull request #43 from amellnik/timestamp_with_local_timezone
Browse files Browse the repository at this point in the history
Add new column type
  • Loading branch information
aviks committed Oct 7, 2018
2 parents 2317b6d + 5d484cd commit 3e1c456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/JDBC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ global const JDBC_COLTYPE_TIMESTAMP = 93
global const JDBC_COLTYPE_TINYINT = -6
global const JDBC_COLTYPE_VARBINARY = -3
global const JDBC_COLTYPE_VARCHAR = 12
global const JDBC_COLTYPE_TIMESTAMP_LOCAL_TIMEZONE = -102

#Map column types to their respective get methods
global const get_method_dict = Dict(
Expand Down Expand Up @@ -569,7 +570,9 @@ global const get_method_dict = Dict(
JDBC_COLTYPE_TIMESTAMP => getTimestamp,
JDBC_COLTYPE_TINYINT => getByte,
# JDBC_COLTYPE_VARBINARY => -3,
JDBC_COLTYPE_VARCHAR => getString
JDBC_COLTYPE_VARCHAR => getString,
# JDBC_COLTYPE_TIMESTAMP_LOCAL_TIMEZONE => -102
JDBC_COLTYPE_TIMESTAMP_LOCAL_TIMEZONE => getTimestamp,
)

"""
Expand Down

0 comments on commit 3e1c456

Please sign in to comment.