diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-19 15:49:00 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-19 15:49:00 +0100 |
| commit | d963b478e27557dab74028b4fd7caf5ebe5f9f44 (patch) | |
| tree | 95c61f512700c181d4040b88b86bcbb60664f31a /lib/extras.py | |
| parent | 26d71b4cba31a62bc648bec353aab299adb391a6 (diff) | |
| download | psycopg2-d963b478e27557dab74028b4fd7caf5ebe5f9f44.tar.gz | |
Added register_default_json() function
Register a typecaster for PostgreSQL 9.2 json.
Diffstat (limited to 'lib/extras.py')
| -rw-r--r-- | lib/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extras.py b/lib/extras.py index 643214e..e14e1c4 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -970,7 +970,7 @@ def register_composite(name, conn_or_curs, globally=False): # expose the json adaptation stuff into the module -from psycopg2._json import json, Json, register_json +from psycopg2._json import json, Json, register_json, register_default_json __all__ = filter(lambda k: not k.startswith('_'), locals().keys()) |
