(self, table_exprs)
| 247 | return self.max_nested_query_count > 0 |
| 248 | |
| 249 | def _create_with_clause(self, table_exprs): |
| 250 | # Make a copy so newly created tables can be added and made available for use in |
| 251 | # future table definitions. |
| 252 | table_exprs = TableExprList(table_exprs) |
| 253 | with_clause_inline_views = TableExprList() |
| 254 | for with_clause_inline_view_idx \ |
| 255 | in range(self.profile.get_with_clause_table_ref_count()): |
| 256 | query = self.generate_statement(table_exprs, |
| 257 | allow_with_clause=self.profile.use_nested_with()) |
| 258 | with_clause_alias_count = getattr(self.root_query, 'with_clause_alias_count', 0) + 1 |
| 259 | self.root_query.with_clause_alias_count = with_clause_alias_count |
| 260 | with_clause_inline_view = \ |
| 261 | WithClauseInlineView(query, 'with_%s' % with_clause_alias_count) |
| 262 | table_exprs.append(with_clause_inline_view) |
| 263 | with_clause_inline_views.append(with_clause_inline_view) |
| 264 | if not self.allow_more_nested_queries: |
| 265 | break |
| 266 | return WithClause(with_clause_inline_views) |
| 267 | |
| 268 | def _create_select_clause(self, |
| 269 | table_exprs, |
no test coverage detected