mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
Info about hstore versions history moved from code to docs
This commit is contained in:
parent
c7bee92160
commit
d183657c11
|
@ -154,6 +154,15 @@ can be enabled using the `register_hstore()` function.
|
|||
|
||||
.. autofunction:: register_hstore
|
||||
|
||||
.. versionchanged:: 2.4
|
||||
added the *oid* parameter. If not specified, the typecaster is
|
||||
installed also if |hstore| is not installed in the :sql:`public`
|
||||
schema.
|
||||
|
||||
.. versionchanged:: 2.4.3
|
||||
added support for |hstore| array.
|
||||
|
||||
|
||||
.. |hstore| replace:: :sql:`hstore`
|
||||
.. _hstore: http://www.postgresql.org/docs/current/static/hstore.html
|
||||
|
||||
|
|
|
@ -742,7 +742,6 @@ def register_hstore(conn_or_curs, globally=False, unicode=False,
|
|||
'hstore'::regtype::oid`. Analogously you can obtain a value for *array_oid*
|
||||
using a query such as :sql:`SELECT 'hstore[]'::regtype::oid`.
|
||||
|
||||
|
||||
Note that, when passing a dictionary from Python to the database, both
|
||||
strings and unicode keys and values are supported. Dictionaries returned
|
||||
from the database have keys/values according to the *unicode* parameter.
|
||||
|
@ -750,15 +749,6 @@ def register_hstore(conn_or_curs, globally=False, unicode=False,
|
|||
The |hstore| contrib module must be already installed in the database
|
||||
(executing the ``hstore.sql`` script in your ``contrib`` directory).
|
||||
Raise `~psycopg2.ProgrammingError` if the type is not found.
|
||||
|
||||
.. versionchanged:: 2.4
|
||||
added the *oid* parameter. If not specified, the typecaster is
|
||||
installed also if |hstore| is not installed in the :sql:`public`
|
||||
schema.
|
||||
|
||||
.. versionchanged:: 2.4.3
|
||||
added support for |hstore| array.
|
||||
|
||||
"""
|
||||
if oid is None:
|
||||
oid = HstoreAdapter.get_oids(conn_or_curs)
|
||||
|
|
Loading…
Reference in New Issue
Block a user