mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Preparing release 2.4
* NEWS file now uses 72 columns (better in emails and posts) * Bumped versions * Updated MonoDevelop file
This commit is contained in:
parent
194447fbbf
commit
2212ea96a6
52
NEWS
52
NEWS
|
@ -3,12 +3,12 @@ What's new in psycopg 2.4
|
||||||
|
|
||||||
* New features and changes:
|
* New features and changes:
|
||||||
|
|
||||||
- Added support for Python 3.1 and 3.2. The conversion has also brought
|
- Added support for Python 3.1 and 3.2. The conversion has also
|
||||||
several improvements:
|
brought several improvements:
|
||||||
|
|
||||||
- Added 'b' and 't' mode to large objects: write can deal with both bytes
|
- Added 'b' and 't' mode to large objects: write can deal with both
|
||||||
strings and unicode; read can return either bytes strings or decoded
|
bytes strings and unicode; read can return either bytes strings
|
||||||
unicode.
|
or decoded unicode.
|
||||||
- COPY sends Unicode data to files implementing 'io.TextIOBase'.
|
- COPY sends Unicode data to files implementing 'io.TextIOBase'.
|
||||||
- Improved PostgreSQL-Python encodings mapping.
|
- Improved PostgreSQL-Python encodings mapping.
|
||||||
- Added a few missing encodings: EUC_CN, EUC_JIS_2004, ISO885910,
|
- Added a few missing encodings: EUC_CN, EUC_JIS_2004, ISO885910,
|
||||||
|
@ -17,40 +17,42 @@ What's new in psycopg 2.4
|
||||||
|
|
||||||
- Improvements to the named cusors:
|
- Improvements to the named cusors:
|
||||||
|
|
||||||
- More efficient iteration on named cursors, fetching 'itersize' records at
|
- More efficient iteration on named cursors, fetching 'itersize'
|
||||||
time from the backend.
|
records at time from the backend.
|
||||||
- The named cursors name can be an invalid identifier.
|
- The named cursors name can be an invalid identifier.
|
||||||
|
|
||||||
- Improvements in data handling:
|
- Improvements in data handling:
|
||||||
|
|
||||||
- Added 'register_composite()' function to cast PostgreSQL composite types
|
- Added 'register_composite()' function to cast PostgreSQL
|
||||||
into Python tuples/namedtuples.
|
composite types into Python tuples/namedtuples.
|
||||||
- Adapt types 'bytearray' (from Python 2.6), 'memoryview' (from Python 2.7)
|
- Adapt types 'bytearray' (from Python 2.6), 'memoryview' (from
|
||||||
and other objects implementing the "Revised Buffer Protocol" to 'bytea'
|
Python 2.7) and other objects implementing the "Revised Buffer
|
||||||
data type.
|
Protocol" to 'bytea' data type.
|
||||||
- The 'hstore' adapter can work even when the data type is not installed
|
- The 'hstore' adapter can work even when the data type is not
|
||||||
in the 'public' namespace.
|
installed in the 'public' namespace.
|
||||||
- Raise a clean exception instead of returning bad data when receiving bytea
|
- Raise a clean exception instead of returning bad data when
|
||||||
in 'hex' format and the client libpq can't parse them.
|
receiving bytea in 'hex' format and the client libpq can't parse
|
||||||
|
them.
|
||||||
- Empty lists correctly roundtrip Python -> PostgreSQL -> Python.
|
- Empty lists correctly roundtrip Python -> PostgreSQL -> Python.
|
||||||
|
|
||||||
- Other changes:
|
- Other changes:
|
||||||
|
|
||||||
- 'cursor.description' is provided as named tuples if available.
|
- 'cursor.description' is provided as named tuples if available.
|
||||||
- The build script refuses to guess values if 'pg_config' is not found.
|
- The build script refuses to guess values if 'pg_config' is not
|
||||||
|
found.
|
||||||
- Connections and cursors are weakly referenceable.
|
- Connections and cursors are weakly referenceable.
|
||||||
|
|
||||||
* Bug fixes:
|
* Bug fixes:
|
||||||
|
|
||||||
- Fixed adaptation of None in composite types (ticket #26). Bug report by
|
- Fixed adaptation of None in composite types (ticket #26). Bug
|
||||||
Karsten Hilbert.
|
report by Karsten Hilbert.
|
||||||
- Fixed several reference leaks in less common code paths.
|
- Fixed several reference leaks in less common code paths.
|
||||||
- Fixed segfault when a large object is closed and its connection no more
|
- Fixed segfault when a large object is closed and its connection no
|
||||||
available.
|
more available.
|
||||||
- Added missing icon to ZPsycopgDA package, not available in Zope 2.12.9
|
- Added missing icon to ZPsycopgDA package, not available in Zope
|
||||||
(ticket #30). Bug report and patch by Pumukel.
|
2.12.9 (ticket #30). Bug report and patch by Pumukel.
|
||||||
- Fixed conversion of negative infinity (ticket #40). Bug report and patch
|
- Fixed conversion of negative infinity (ticket #40). Bug report and
|
||||||
by Marti Raudsepp.
|
patch by Marti Raudsepp.
|
||||||
|
|
||||||
|
|
||||||
What's new in psycopg 2.3.2
|
What's new in psycopg 2.3.2
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
# their work without bothering about the module dependencies.
|
# their work without bothering about the module dependencies.
|
||||||
|
|
||||||
|
|
||||||
ALLOWED_PSYCOPG_VERSIONS = ('2.4-beta1', '2.4-beta2')
|
ALLOWED_PSYCOPG_VERSIONS = ('2.4-beta1', '2.4-beta2', '2.4')
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -89,7 +89,6 @@
|
||||||
<None Include="psycopg\microprotocols.h" />
|
<None Include="psycopg\microprotocols.h" />
|
||||||
<None Include="psycopg\microprotocols_proto.h" />
|
<None Include="psycopg\microprotocols_proto.h" />
|
||||||
<None Include="psycopg\pgtypes.h" />
|
<None Include="psycopg\pgtypes.h" />
|
||||||
<None Include="psycopg\pgversion.h" />
|
|
||||||
<None Include="psycopg\pqpath.h" />
|
<None Include="psycopg\pqpath.h" />
|
||||||
<None Include="psycopg\psycopg.h" />
|
<None Include="psycopg\psycopg.h" />
|
||||||
<None Include="psycopg\python.h" />
|
<None Include="psycopg\python.h" />
|
||||||
|
@ -198,12 +197,11 @@
|
||||||
<None Include="psycopg\green.h" />
|
<None Include="psycopg\green.h" />
|
||||||
<None Include="doc\src\pool.rst" />
|
<None Include="doc\src\pool.rst" />
|
||||||
<None Include="sandbox\dec2float.py" />
|
<None Include="sandbox\dec2float.py" />
|
||||||
<None Include="NEWS-2.0" />
|
|
||||||
<None Include="psycopg\notify.h" />
|
<None Include="psycopg\notify.h" />
|
||||||
<None Include="psycopg\xid.h" />
|
<None Include="psycopg\xid.h" />
|
||||||
<None Include="tests\dbapi20_tpc.py" />
|
<None Include="tests\dbapi20_tpc.py" />
|
||||||
<None Include="tests\test_cursor.py" />
|
<None Include="tests\test_cursor.py" />
|
||||||
<None Include="NEWS-2.3" />
|
<None Include="NEWS" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="psycopg\adapter_asis.c" />
|
<Compile Include="psycopg\adapter_asis.c" />
|
||||||
|
|
23
psycopg2.sln
23
psycopg2.sln
|
@ -19,19 +19,22 @@ Global
|
||||||
Policies = $0
|
Policies = $0
|
||||||
$0.TextStylePolicy = $1
|
$0.TextStylePolicy = $1
|
||||||
$1.FileWidth = 120
|
$1.FileWidth = 120
|
||||||
$1.NoTabsAfterNonTabs = False
|
$1.TabWidth = 4
|
||||||
|
$1.inheritsSet = Mono
|
||||||
|
$1.inheritsScope = text/plain
|
||||||
$0.DotNetNamingPolicy = $2
|
$0.DotNetNamingPolicy = $2
|
||||||
$2.DirectoryNamespaceAssociation = None
|
$2.DirectoryNamespaceAssociation = None
|
||||||
$2.ResourceNamePolicy = FileName
|
$2.ResourceNamePolicy = FileName
|
||||||
$0.TextStylePolicy = $3
|
$0.StandardHeader = $3
|
||||||
$3.NoTabsAfterNonTabs = False
|
$3.Text =
|
||||||
$3.inheritsSet = Mono
|
$3.IncludeInNewFiles = False
|
||||||
$3.inheritsScope = text/x-python
|
$0.TextStylePolicy = $4
|
||||||
$3.scope = text/plain
|
$4.FileWidth = 72
|
||||||
$0.StandardHeader = $4
|
$4.NoTabsAfterNonTabs = True
|
||||||
$4.Text =
|
$4.RemoveTrailingWhitespace = True
|
||||||
$4.IncludeInNewFiles = False
|
$4.inheritsSet = VisualStudio
|
||||||
$4.inheritsSet = MITX11License
|
$4.inheritsScope = text/plain
|
||||||
|
$4.scope = text/x-readme
|
||||||
name = psycopg2
|
name = psycopg2
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -79,7 +79,7 @@ except ImportError:
|
||||||
# Take a look at http://www.python.org/dev/peps/pep-0386/
|
# Take a look at http://www.python.org/dev/peps/pep-0386/
|
||||||
# for a consistent versioning pattern.
|
# for a consistent versioning pattern.
|
||||||
|
|
||||||
PSYCOPG_VERSION = '2.4-beta3'
|
PSYCOPG_VERSION = '2.4'
|
||||||
|
|
||||||
version_flags = ['dt', 'dec']
|
version_flags = ['dt', 'dec']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user