Skip to content

Commit

Permalink
Fix SQL 42000 on Exasol (#420)
Browse files Browse the repository at this point in the history
" SQL-Error [42000]: syntax error, unexpected '*' "
If you specify the * in the unioned with their respectiv names <name>.* you do not receive the SQL Error posted above. This should not inflict any further problems since it is redundant for most DBs.
  • Loading branch information
TimoKruth authored Oct 21, 2021
1 parent b5f499e commit b834d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/schema_tests/equality.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ b_minus_a as (

unioned as (

select 'a_minus_b' as which_diff, * from a_minus_b
select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b
union all
select 'b_minus_a' as which_diff, * from b_minus_a
select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a

)

Expand Down

0 comments on commit b834d13

Please sign in to comment.