Changeset 806 for trunk/pgmodule.c


Ignore:
Timestamp:
Feb 1, 2016, 1:38:05 AM (4 years ago)
Author:
cito
Message:

Return bools from Postgres as Python bools by default

This has been done by the DB-API 2 module already and was configurable
in the classic module since a long time, but by default it was disabled.
It is now time to flip the switch and have this activated by default in
version 5.0. You can still restore the old behavior with set_bool(False).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgmodule.c

    r804 r806  
    9797                                *jsondecode = NULL; /* function for decoding json strings */
    9898static char decimal_point = '.'; /* decimal point used in money values */
    99 static int bool_as_text = 1; /* whether bool shall be returned as text */
     99static int bool_as_text = 0; /* whether bool shall be returned as text */
    100100static int array_as_text = 0; /* whether arrays shall be returned as text */
    101101static int bytea_escaped = 0; /* whether bytea shall be returned escaped */
Note: See TracChangeset for help on using the changeset viewer.