django/django — pull request #3190 by jarshwah (2014-09-07 02:30:57+00:00)
Title: Fixed #23434 -- Coerce Oracle bool params to int

Oracle boolean query parameters are coerced to the strings "1" and "0" rather than the ints 1 and 0. This causes issues when trying to write a query like:

```
cursor.execute("SELECT %s as bool_value ...", True)
```

These kinds of queries can be generated with #2496 , and prevent result converters from operating on the correct type. By changing the parameters to integers, we get the appropriate type back from the database (a number), and the converters correctly change that value to the appropriate bool.