Skip to content

Commit

Permalink
Deeper nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Oct 10, 2023
1 parent 1cb8867 commit f0a0152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ using namespace std;

shared_ptr<table_ref> table_ref::factory(prod *p) {
try {
if (p->level < 3 + d6()) {
if (d6() > 3 && p->level < d6() && g_joins > 0)
if (p->level < 6 + d6()) {
if (d6() > 3 && p->level < 3 + d6() && g_joins > 0)
g_joins--;
return make_shared<table_subquery>(p);
// ERROR: Expected ON, or USING after JOIN, found JOIN
Expand Down

0 comments on commit f0a0152

Please sign in to comment.