Skip to content

Commit

Permalink
Merge pull request #6 from patterninc/final_data_type_fixes
Browse files Browse the repository at this point in the history
Final data type fixes
  • Loading branch information
vishalzambre authored Mar 22, 2023
2 parents e2c278f + 8b44387 commit f948586
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ def initialize_type_map(m = type_map)
m.alias_type 'bool', 'boolean'
m.alias_type 'varbinary', 'binary'
m.alias_type 'variant', 'json'
m.alias_type 'object', 'json'
m.alias_type 'array', 'json'
m.alias_type 'object', 'string'
m.alias_type 'array', 'string'
m.alias_type 'geography', 'char'
m.alias_type 'geometry', 'char'

# number() data types in Snowflake are interpreted as decimal and must be mapped back to a float
m.alias_type 'decimal', 'float'
end

# Translate an exception from the native DBMS to something usable by
Expand Down

0 comments on commit f948586

Please sign in to comment.