Daniele Varrazzo
75cb5d75d7
Use escape string syntax for string escape if connected to a server
...
requiring it.
Added a connection flag to store whether E''-style quoting is required: this
avoids repeated PQparameterStatus() calls.
Added a test case to verify correct behavior on strings, unicode and binary
data. Tested with PG versions from 7.4 to 8.3b2, with any server
'standard_conforming_strings' setting and with 'PSYCOPG_OWN_QUOTING' too.
2007-11-11 08:53:44 +00:00
Daniele Varrazzo
70e555585e
Fixed selection of the proper binary string quoting.
2007-11-09 13:00:37 +00:00
Daniele Varrazzo
272140f5c1
Use escape string syntax for binary escape if connected with a
...
server with ver >= 8.2.
The feature is only enabled when compiling psycopg with libpq
ver >= 8.0.
2007-11-09 05:51:12 +00:00
Daniele Varrazzo
7d408b47d7
ChangeLog updated after r903.
2007-11-09 05:49:13 +00:00
Daniele Varrazzo
e1dd9ca843
Fixed bug #192 (Decimal support not safe for use with multiple sub
...
interpreters) as proposed by Graham Dumpleton.
If running in the main interpreter, use a cached version of the Decimal
object. Else repeat the object lookup.
2007-10-21 03:22:55 +00:00
Federico Di Gregorio
c9e701baa9
Fixed bug #194 (and added nice MD project not that C/C++ is supported.)
2007-09-08 08:54:30 +00:00
Federico Di Gregorio
0422506404
Added name parameters to .cursor() calls in extras.
2007-09-01 09:32:42 +00:00
Federico Di Gregorio
dfda372fae
Preparing release 2.0.6.
2007-06-08 00:39:06 +00:00
Federico Di Gregorio
dbbdcfb0c0
Fix for #182 .
2007-05-29 08:56:17 +00:00
Federico Di Gregorio
46668d214b
conn_commit/conn_rollback error handling ( closes : #187 ).
2007-05-29 08:43:34 +00:00
Federico Di Gregorio
a07987cd90
Patchset copy_expert 5/5.
2007-05-29 08:30:24 +00:00
Federico Di Gregorio
b82c2f5cd9
Patchset copy_expert 4/5.
2007-05-29 08:23:35 +00:00
Federico Di Gregorio
c54e9142f4
Patchset copy_expert 3/5.
2007-05-29 08:16:44 +00:00
Federico Di Gregorio
3b2908b51e
Patchset copy_expert 2/5.
2007-05-29 08:14:58 +00:00
Federico Di Gregorio
a23de80c6b
Patchset copy_expert 1/5.
2007-05-29 08:13:40 +00:00
Federico Di Gregorio
a779c8ef99
.get_transaction_status() implementation.
2007-04-25 22:42:36 +00:00
Federico Di Gregorio
d6e232e2b9
Various fixes, now all examples work.
2007-04-13 14:07:11 +00:00
Federico Di Gregorio
8274a032b1
typecast_binary.c cleanup.
2007-04-13 01:17:54 +00:00
Federico Di Gregorio
967ec370ed
int->size_t transition.
2007-04-13 01:16:22 +00:00
Federico Di Gregorio
ee44315ff2
Appliet Jasons patch to fix win32 build glitches.
2007-04-13 01:14:01 +00:00
Federico Di Gregorio
f57920b0dd
Release 2.0.6b2.
2007-04-11 07:12:16 +00:00
Federico Di Gregorio
2a6b523506
Fixed crash and win32 patches.
2007-04-11 04:16:00 +00:00
Federico Di Gregorio
d6f2aa27b7
Fixed mem and ref leak in connect().
2007-04-10 06:51:35 +00:00
Federico Di Gregorio
e5829292cd
Fixed both Python 2.5 and 64 bit problems.
2007-04-10 06:36:18 +00:00
Federico Di Gregorio
6598a279e2
Added support for per-cursor and per-connection typecasters.
2007-02-22 15:16:54 +00:00
Federico Di Gregorio
c2e16b8901
Applied patch from #135 .
2007-02-11 08:25:33 +00:00
Federico Di Gregorio
09c866221c
Password obfuscation done right ( closes : #147 )
2007-02-11 08:11:22 +00:00
Federico Di Gregorio
5642a68adb
Encodings from Karsten.
2007-01-19 14:38:01 +00:00
Federico Di Gregorio
1c16009985
Added support for NULL in arrays ( closes : #154 )
2007-01-19 14:08:06 +00:00
Federico Di Gregorio
2883428791
Lets do a beta release.
2007-01-19 03:40:27 +00:00
Federico Di Gregorio
b074dd4d8b
Encoding fixes.
2007-01-16 23:39:08 +00:00
Federico Di Gregorio
f43a52f781
Added RealDictCursor from #143 .
2007-01-16 13:45:41 +00:00
Federico Di Gregorio
5c425f5294
Check for Python errors during copy ( closes : #134 ).
2007-01-16 12:03:29 +00:00
Federico Di Gregorio
8c2c72a48a
Applied patch from #148 .
2007-01-16 11:32:01 +00:00
Federico Di Gregorio
e02f569dd3
Password obfuscation to close : #147 .
2007-01-16 11:29:07 +00:00
Federico Di Gregorio
e59ef4de4b
Moved SQL_IN to extensions and away from extras.
2007-01-16 10:58:05 +00:00
Federico Di Gregorio
d342d37e27
Fixed problem with locales in mx.DateTime adaptation.
2007-01-16 10:47:28 +00:00
Federico Di Gregorio
d061b384d9
Fixed problem with year > 9999.
2007-01-16 07:57:22 +00:00
Federico Di Gregorio
f4dc6936a2
Builds again on win32 ( closes : #132 ).
2006-10-29 03:12:51 +00:00
Federico Di Gregorio
96f631d41e
Merge from 2.0 branch up to r839.
2006-09-30 06:57:35 +00:00
Federico Di Gregorio
5689f07de4
Infinity ok in Zope ( closes : #122 )
2006-09-30 06:39:51 +00:00
Federico Di Gregorio
4820213b7f
Fixed fractionary seconds >59 problem ( closes : #131 )
2006-09-30 06:35:12 +00:00
Federico Di Gregorio
bc580e3383
Fixed #129 .
2006-09-30 06:24:24 +00:00
Federico Di Gregorio
168d9c36af
Fractionary seconds fix ( closes : #130 )
2006-09-30 06:16:24 +00:00
Federico Di Gregorio
43518d067e
Added lib/errorcodes.py.
2006-09-23 05:35:03 +00:00
Federico Di Gregorio
1fe6269904
Piet Delport patches: final cleanup and PEP 353 macros.
2006-09-23 05:19:30 +00:00
Federico Di Gregorio
1d8af808bf
Piet Delport patches: 3 of 3.
2006-09-23 05:15:36 +00:00
Federico Di Gregorio
474d8b9d51
Piet Delport patches: 2 of 3.
2006-09-23 05:14:24 +00:00
Federico Di Gregorio
3009a29b11
Piet Delport patches: 1 of 3.
2006-09-23 05:10:58 +00:00
Federico Di Gregorio
52666ef5bd
Fixed syntax error in lib/extras.py.
2006-09-10 14:51:43 +00:00
Federico Di Gregorio
31189ef0df
Fixed syntax error in extras module ( closes : #123 ).
2006-09-10 14:50:03 +00:00
Federico Di Gregorio
a9d307140e
mx fix to build on win32.
2006-09-02 09:00:47 +00:00
Federico Di Gregorio
2007652589
mx fix to build on win32.
2006-09-02 09:00:39 +00:00
Federico Di Gregorio
dbd976bc03
Double mutex destroy fix.
2006-09-02 08:50:58 +00:00
Federico Di Gregorio
afaca71aa9
Double mutex destroy fix.
2006-09-02 08:50:30 +00:00
Federico Di Gregorio
64bd7ae61c
Large objects landing..
2006-09-02 04:57:50 +00:00
Federico Di Gregorio
616a1c2042
Preparing 2.0.5.1.
2006-09-02 01:09:31 +00:00
Federico Di Gregorio
b8f3cef62f
psycopg is enlarging..
2006-09-01 16:27:02 +00:00
Federico Di Gregorio
64933f2004
Merge from 2_0_x branch up to r814.
2006-09-01 13:46:57 +00:00
Federico Di Gregorio
3e0d8792a8
Preparing 2.0.5.
2006-09-01 12:42:03 +00:00
Federico Di Gregorio
b3fdd80452
Fixed OperationalError in connection objects.
2006-09-01 11:55:27 +00:00
Federico Di Gregorio
6ddfde4543
Preparing 2.0.5.
2006-09-01 08:55:25 +00:00
Federico Di Gregorio
4138409ab6
Fixed use of use_pydatetime in setup.cfg.
2006-09-01 08:44:57 +00:00
Federico Di Gregorio
ec865ae932
.connect() port parameter as string or int ( closes : #120 ).
2006-09-01 08:29:30 +00:00
Federico Di Gregorio
f88b973bd1
Empty binary buffer segfault fix ( closes : #119 ).
2006-09-01 08:23:51 +00:00
Federico Di Gregorio
8eb118c63f
Exposed connection status.
2006-09-01 08:20:11 +00:00
Federico Di Gregorio
6f0e578686
Null query segfault fix ( closes : #117 ).
2006-09-01 07:45:58 +00:00
Federico Di Gregorio
23112a763d
.executemany() fix ( closes : #116 ).
2006-09-01 07:42:30 +00:00
Federico Di Gregorio
ba1e5389c8
ImageFile patch from Charlie.
2006-09-01 07:19:22 +00:00
Federico Di Gregorio
38cf5f4520
Logging patch from Charlie.
2006-09-01 07:12:23 +00:00
Federico Di Gregorio
f202c7fc81
Preparing release 2.0.4.
2006-08-01 23:36:50 +00:00
Federico Di Gregorio
14805a5311
Preparing release 2.0.3.
2006-07-31 00:22:13 +00:00
Federico Di Gregorio
50e85bba65
Applied colum-selectionpatch ( closes : #113 ).
2006-07-31 00:17:01 +00:00
Federico Di Gregorio
5e590d604f
Fixed memory leak ( closes : #114 ).
2006-07-31 00:02:08 +00:00
Federico Di Gregorio
b9f7c24a63
Interval conversion fix.
2006-07-26 05:13:08 +00:00
Federico Di Gregorio
b9fcde1b39
Fixed segfault in Binary/QString.
2006-06-18 05:57:01 +00:00
Federico Di Gregorio
cf7701a151
Little fixes.
2006-06-15 12:39:56 +00:00
Federico Di Gregorio
0a574e91a4
Preparing 2.0.2.
2006-06-11 05:14:57 +00:00
Federico Di Gregorio
07be5df881
Fix for #93 .
2006-06-11 05:09:59 +00:00
Federico Di Gregorio
0ce5207871
#warning fix.
2006-06-11 04:04:04 +00:00
Federico Di Gregorio
a9045916f2
Fixed list adaptation.
2006-06-11 03:40:16 +00:00
Federico Di Gregorio
9577f4e2a6
Fixed under-allocation ( closes : #110 )
2006-06-11 03:27:30 +00:00
Federico Di Gregorio
fb0b523586
Fixed string allocation (loses: #109 )
2006-06-11 03:19:18 +00:00
Federico Di Gregorio
7034af0de5
Preparing 2.0.1.
2006-06-09 00:06:38 +00:00
Federico Di Gregorio
ba3361a7a6
Fixing ZPsycopgDA glitches of 2.0.
2006-06-09 00:05:42 +00:00
Federico Di Gregorio
0544e96812
Temporarily removed browse tab.
2006-06-07 23:41:40 +00:00
Federico Di Gregorio
bfb00b86fd
Better PostgreSQL version check.
2006-05-26 05:22:49 +00:00
Federico Di Gregorio
ec877b0ef9
Final of 8.1.4 securiy patch.
2006-05-24 10:29:35 +00:00
Federico Di Gregorio
5f8eddfcab
Second half of 8.1.4 securiy patch.
2006-05-24 10:02:33 +00:00
Federico Di Gregorio
750806c806
Fixed setup.py buglet.
2006-04-27 14:20:11 +00:00
Federico Di Gregorio
3806f9688b
Boolean fix for arrays.
2006-04-24 05:42:02 +00:00
Federico Di Gregorio
27a063fecb
DictCursor now support iteration.
2006-03-08 01:03:19 +00:00
Federico Di Gregorio
559149824b
Small 64 bit fix.
2006-03-02 13:47:30 +00:00
Federico Di Gregorio
77398c759e
Fixed handle leak on win32 and preparing 2.0 beta 8.
2006-02-11 11:01:17 +00:00
Federico Di Gregorio
d14a2c0639
Preparing release 2.0b7.
2006-02-11 07:09:15 +00:00
Federico Di Gregorio
94d663c6b6
Fixed memory overflow.
2006-02-11 06:57:34 +00:00
Federico Di Gregorio
8db642945c
MSVC build fixes.
2006-02-11 06:51:38 +00:00
Federico Di Gregorio
791a728c01
Applied patch #87 to make setup.py to not depend but just use pg_config.
2006-01-10 16:23:03 +00:00
Daniele Varrazzo
3076046b3f
* libpq.dll not used anymore. win32 setup uses pg_config too.
...
* Some typo fixed.
2006-01-05 16:56:40 +00:00
Federico Di Gregorio
96ff591d79
Extra attributes for ProgrammingError exception.
2006-01-05 08:13:03 +00:00
Federico Di Gregorio
d5674253ca
We now use pg_config in setup.py ( closes : #70 ).
2006-01-05 04:19:01 +00:00
Federico Di Gregorio
83ea7e1f5b
Preparing release 1.0.7.
2006-01-01 11:17:46 +00:00
Federico Di Gregorio
73846966a2
We now distribute documentation.
2006-01-01 11:14:48 +00:00
Federico Di Gregorio
7db16edad3
Connection encoding case fix ( closes : #83 ).
2006-01-01 09:10:17 +00:00
Federico Di Gregorio
e72f3dba40
Fixed problem with array results that begin with "[...]=". ( Closes : #80 )
2005-12-11 08:21:20 +00:00
Federico Di Gregorio
31d85750b0
mx_include_dir in setup.cfg.
2005-12-11 08:05:49 +00:00
Federico Di Gregorio
61de8690e9
Fixed problem with "fractionary" time zones ( Closes : #78 ).
2005-12-11 07:50:27 +00:00
Federico Di Gregorio
5ea2fa636f
Better DictCursor.
2005-12-06 05:55:58 +00:00
Federico Di Gregorio
3937ea3ece
Added aync.txt to distribution.
2005-11-29 12:01:46 +00:00
Federico Di Gregorio
4261bc3371
Slightly more readable setup.cfg.
2005-11-29 11:50:43 +00:00
Daniele Varrazzo
ad76b5ba3c
* psycopg/psycopgmodule.c: fixed exceptions refcount.
...
* fixed lots of doctrings and added Epydoc-generated docs support.
2005-11-26 07:47:48 +00:00
Federico Di Gregorio
5bdd055ca1
Added sandbox stuff to the repository.
2005-11-24 03:34:42 +00:00
Federico Di Gregorio
03c0a258a2
Fixed problem in microseconds conversion.
2005-11-20 04:54:33 +00:00
Federico Di Gregorio
f4fee20b3b
In extensions.py: COMMITED -> COMMITTED. ( Closes : #73 )
2005-11-19 14:20:41 +00:00
Federico Di Gregorio
b97b0b04de
extensions.rst is shaping up!
2005-11-19 11:23:18 +00:00
Federico Di Gregorio
1549c2611c
Fixed ZPsycopgDA connection leak.
2005-11-17 09:51:01 +00:00
Federico Di Gregorio
996bd07c85
Definitely fixed date and time adapting problems (for mx too!)
2005-11-16 17:30:45 +00:00
Federico Di Gregorio
3a34182307
Preparing release 2.0 beta 6.
2005-11-16 13:47:11 +00:00
Federico Di Gregorio
96b2541939
Better fix for py2exe and related tools.
2005-11-15 16:05:15 +00:00
Federico Di Gregorio
65fe7db04d
Does not crash on importing needed modules. ( Closes : #32 )
2005-11-15 11:51:05 +00:00
Federico Di Gregorio
164eb32817
New time/date locale-safe typecasting code.
2005-11-14 11:57:45 +00:00
Federico Di Gregorio
770e7c34d3
Fixed problem with unitialized value in dsize.
2005-11-07 14:26:41 +00:00
Federico Di Gregorio
e727c49134
Converted typecast class to new-style and implemented much better compare method.
2005-11-03 18:28:04 +00:00
Federico Di Gregorio
c5bc1a3b9a
Small changes to interval parsing.
2005-11-03 16:03:06 +00:00
Federico Di Gregorio
f03b94d84b
Run-time check for Decimal on Python 2.3.
2005-11-03 01:35:17 +00:00
Federico Di Gregorio
0a73b75c51
SUSE addition to setup.cfg.
2005-10-25 16:00:49 +00:00
Federico Di Gregorio
ed23aeb37c
named cursors are working.
2005-10-25 15:35:11 +00:00
Federico Di Gregorio
ef3430d24f
Implemented named cursors.
2005-10-22 06:59:31 +00:00
Federico Di Gregorio
f687f2853e
Various pool changes.
2005-10-19 14:38:37 +00:00
Federico Di Gregorio
49a255059e
Releasing 2.0 beta 5.
2005-10-18 14:44:57 +00:00
Federico Di Gregorio
8d4607ebbd
Releasing 2.0 beta 5.
2005-10-18 14:20:27 +00:00
Federico Di Gregorio
ec31179c9e
NOTIFY works again.
2005-10-18 14:07:17 +00:00
Federico Di Gregorio
3168e7b95d
Better epydoc support.
2005-10-18 05:29:42 +00:00
Federico Di Gregorio
7eda959258
We should now build on ZETA.
2005-10-18 03:57:52 +00:00
Federico Di Gregorio
a0040160d6
Fixed typo in examples.
2005-10-18 01:35:34 +00:00
Federico Di Gregorio
6b0b634bae
Code cleanup.
2005-10-18 01:29:47 +00:00
Federico Di Gregorio
a1ed1fb267
Added localtime_r for platforms not providing it.
2005-10-17 16:16:47 +00:00
Federico Di Gregorio
a237209a5e
Default tzinfo_factory for cursors.
2005-10-17 16:04:43 +00:00
Federico Di Gregorio
206aa79225
Working on TZ issues.
2005-10-17 15:01:14 +00:00
Federico Di Gregorio
5715a74388
Applied patches to fix docstrings.
2005-10-17 06:17:34 +00:00
Federico Di Gregorio
8e453ce176
Last changes to .set_isolation_level().
2005-10-08 03:15:17 +00:00
Federico Di Gregorio
e1688431e0
Isolation level changes.
2005-10-08 03:04:40 +00:00
Federico Di Gregorio
8920c2662b
Appliced callproc patch.
2005-10-01 14:58:25 +00:00
Federico Di Gregorio
67720de497
Fixed segfault in connection.set_client_encoding().
2005-09-30 16:48:41 +00:00
Federico Di Gregorio
39136e1af4
Docstrings fixes.
2005-09-30 16:18:26 +00:00
Federico Di Gregorio
b7e5e5e272
piro pool.py patch.
2005-09-24 13:59:57 +00:00
Federico Di Gregorio
feeea0309a
psycopg->psycopg2 fixes.
2005-09-12 02:29:46 +00:00
Federico Di Gregorio
f4b52e8cdd
Mingw and ZPsycopgDA fixes.
2005-09-12 02:23:17 +00:00
Federico Di Gregorio
8d3fd21280
mingw fixes.
2005-08-23 10:38:36 +00:00
Federico Di Gregorio
c123389378
Ported mxDateTime formatting changes from 1.1.x.
2005-08-22 15:45:06 +00:00