`@cols_to_join_on` requires that `@schema` is also set
TheJayMann opened this issue · comments
TheJayMann commented
When @cols_to_join_on
is specified, an error is set specifying that a valid @cols_to_join_on
has not been set. When explicitly specifying the schema, it works.
It appears that at line 438 the filter is matching c.TABLE_SCHEMA
to @schema
, requiring the @schema
parameter be defined, while on line 470 the filter is matching c.TABLE_SCHEMA
to COALLESCE(@schema, SCHEMA_NAME())
, allowing the current schema to be used if not specified.
Daniel Nolan commented
Good catch, this should now be fixed. Let me know if you still encounter problems with it though.