tlocke / pg8000

A Pure-Python PostgreSQL Driver
BSD 3-Clause "New" or "Revised" License
515 stars 46 forks source link

Should free-standing %% be rewritten as % for DBAPI format? #94

Closed tlocke closed 1 year ago

tlocke commented 2 years ago

For example, at the moment

SELECT (id %% 2) = 0

is rewritten as:

SELECT (id % 2) = 0

but should it be?

tlocke commented 1 year ago

Without a reason to change, I think we should probably just leave it as it is. But do please re-open if there's an argument for changing it.