Closed ksindi closed 6 years ago
cc @sripathikrishnan
ran into this too: https://github.com/hashedin/jinjasql/pull/17. though not sure we why wouldn't use hash, are we worried about performance?
@benrudolph hashing is better. closing my PR in favor of yours.
It's possible to never exit the while loop if there are more than 1000 items that need to be bound. This PR mitigates it by using
sys.maxsize
, which is Python 2 and 3 compatible.There is no real performance penalty by increasing the upper bound of
random.randrange
:Reproducing error: