mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
Preparing release 2.0b4.
This commit is contained in:
parent
5edfdc2a54
commit
5f00dc1100
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
2005-07-17 Federico Di Gregorio <fog@debian.org>
|
||||
|
||||
* lib/extras.py (DictConnection.cursor): added DictConnection to
|
||||
make easier to retrieve data in DictRows.
|
||||
|
||||
2005-06-24 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* psycopg/typecast_datetime.c (typecast_PYINTERVAL_cast): applied patch
|
||||
|
@ -7,8 +12,8 @@
|
|||
|
||||
* setup.cfg: some clarifications and include_dirs example for Mandrake.
|
||||
|
||||
* ZPsycopgDA/DA.py: DTMLFile -> HTMLFile everywhere to fix zope cut&paste
|
||||
problems.
|
||||
* ZPsycopgDA/DA.py: DTMLFile -> HTMLFile everywhere to fix zope
|
||||
cut&paste problems.
|
||||
|
||||
* MANIFEST.in: added missing files to do bdist_rpm.
|
||||
|
||||
|
@ -22,8 +27,9 @@
|
|||
* psycopg/psycopgmodule.c (psyco_connect): changed the port keyword
|
||||
parameter type to int (instead of string); this should fix #23.
|
||||
|
||||
* psycopg/cursor_type.c (_psyco_curs_execute): now checks for empty queries
|
||||
and raise a ProgrammingError if appropriate (closes: #24).
|
||||
* psycopg/cursor_type.c (_psyco_curs_execute): now checks for
|
||||
empty queries and raise a ProgrammingError if appropriate (closes:
|
||||
#24).
|
||||
|
||||
* setup.py: psycopg module renamed to psycopg2.
|
||||
|
||||
|
|
4
NEWS
4
NEWS
|
@ -1,6 +1,8 @@
|
|||
What's new in psycopg 2.0 beta 4
|
||||
--------------------------------
|
||||
|
||||
* psycopg module is now named psycopg2.
|
||||
|
||||
* No more segfaults when a UNICODE query can't be converted to the
|
||||
backend encoding.
|
||||
|
||||
|
@ -8,6 +10,8 @@ What's new in psycopg 2.0 beta 4
|
|||
|
||||
* psycopg2.connect() now takes an integer for the port keyword parameter.
|
||||
|
||||
* "python setup.py bdist_rpm" now works.
|
||||
|
||||
* Fixed lots of small bugs, see ChangeLog for details.
|
||||
|
||||
What's new in psycopg 2.0 beta 3
|
||||
|
|
|
@ -18,9 +18,14 @@ and classes untill a better place in the distribution is found.
|
|||
# for more details.
|
||||
|
||||
from psycopg2.extensions import cursor as _cursor
|
||||
from psycopg2.extensions import connection as _connection
|
||||
from psycopg2.extensions import register_adapter as _RA
|
||||
from psycopg2.extensions import adapt as _A
|
||||
|
||||
class DictConnection(_connection):
|
||||
"""A connection that uses DictCursor automatically."""
|
||||
def cursor(self):
|
||||
return _connection.cursor(self, cursor_factory=DictCursor)
|
||||
|
||||
class DictCursor(_cursor):
|
||||
"""A cursor that keeps a list of column name -> index mappings."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user