Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
Submitted by: Christian von Kietzell
Psycopg incorrectly returns empty strings in composite data types as None instead of ''.
For example:
sql> CREATE TYPE testtype AS (id INT, label TEXT);
python> import psycopg2 python> import psycopg2.extras python> db = psycopg2.connect(...) python> caster = psycopg2.extras.register_composite('testtype', db) python> cursor = db.cursor() python> cursor.execute("SELECT (1, '')::testtype") python> cursor.fetchone()[0] testtype(id=1, label=None)
Reported by Psycopg website · December 3rd, 2012 @ 01:51 PM
Fixed for 2.4.6, thank you for the report.
December 3rd, 2012 @ 02:23 PM