dnlnln / generate-sql-merge

Generate SQL MERGE statements with Table data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated MERGE statement is invalid if it includes geography type columns

shabeker opened this issue · comments

Columns of type geography cannot be compared with = or NULLIF. The merge statement generated for tables that have geography columns yields the following error:
"Invalid operator for data type. Operator equals equal to, type equals geography."
Comparing geography values needs to use the STEquals() function.

I've submitted a PR to fix this issue (#44, branch: support-geo-data-types), as well as adding support for the geometry data-type.

If you have a chance to confirm that it fixes the problem, that'd be great!

Thanks for the update! I confirm it fixes the issue.