Skip to content

Commit

Permalink
Allow varchar/nvarchar to match string with collation
Browse files Browse the repository at this point in the history
 * e.g. NVARCHAR(5000) COLLATE "SQL_Latin1_General_CP1_CI_AS"
  • Loading branch information
rad-pat committed Dec 14, 2022
1 parent ad03184 commit cee277b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plaidcloud/rpc/type_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
r'^object$': 'text',
r'^[n]?text$': 'text', # text + ntext
r'^[n]?char': 'text', # char + nchar
r'^nvarchar(\([0-9]*\))*$': 'text',
r'^varchar(\([0-9]*\))*$': 'text',
r'^nvarchar(\([0-9]*\))*': 'text',
r'^varchar(\([0-9]*\))*': 'text',
r'^string$': 'text',
r'^int8$': 'smallint',
r'^tinyint$': 'smallint',
Expand Down Expand Up @@ -67,7 +67,6 @@
r'^rowversion$': 'numeric',
r'^hierarchyid$': 'text',
r'^sql_variant$': 'text',
r'^xml$': 'text',
r'^spatial_(?:geometry|geography)_types$': 'text', # spatial_geometry_types + spatial_geography_types
r'^table$': 'text'
})
Expand Down

0 comments on commit cee277b

Please sign in to comment.