(self, compiler, connection)
| 541 | return "IN %s" % rhs |
| 542 | |
| 543 | def as_sql(self, compiler, connection): |
| 544 | max_in_list_size = connection.ops.max_in_list_size() |
| 545 | if ( |
| 546 | self.rhs_is_direct_value() |
| 547 | and max_in_list_size |
| 548 | and len(self.rhs) > max_in_list_size |
| 549 | ): |
| 550 | return self.split_parameter_list_as_sql(compiler, connection) |
| 551 | return super().as_sql(compiler, connection) |
| 552 | |
| 553 | def split_parameter_list_as_sql(self, compiler, connection): |
| 554 | # This is a special case for databases which limit the number of |
no test coverage detected