Skip to content

Commit

Permalink
Merge pull request localytics#16 from springbuk/MOJ-203-InsightWorker…
Browse files Browse the repository at this point in the history
…PerRule

MOJ-203 Insight worker per rule
  • Loading branch information
ACerka-Springbuk authored Aug 2, 2022
2 parents 5ccedfe + e82500c commit dedd931
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/odbc_adapter/database_statements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def dbms_type_cast(columns, rows)
value.to_i
when [ODBC::SQL_BIT].include?(column.type)
value == 1
when [ODBC::SQL_DATE].include?(column.type)
when [ODBC::SQL_DATE, ODBC::SQL_TYPE_DATE].include?(column.type)
value.to_date
when [ODBC::SQL_TIME].include?(column.type)
when [ODBC::SQL_TIME, ODBC::SQL_TYPE_TIME].include?(column.type)
value.to_time
when [ODBC::SQL_DATETIME, ODBC::SQL_TIMESTAMP].include?(column.type)
when [ODBC::SQL_DATETIME, ODBC::SQL_TIMESTAMP, ODBC::SQL_TYPE_TIMESTAMP].include?(column.type)
value.to_datetime
# when ["ARRAY"?, "OBJECT"?, "VARIANT"?].include?(column.type)
# TODO: "ARRAY", "OBJECT", "VARIANT" all return as VARCHAR
Expand Down

0 comments on commit dedd931

Please sign in to comment.