100 Commits

Author SHA1 Message Date
Anthony Tuininga
817186b16e Raise errors as instances of setup errors, not strings in order to provide
initial support for Python 3.0.
2008-10-02 17:28:23 +00:00
Anthony Tuininga
243849a5ff Use Py_TYPE to determine the type of an object rather than referencing the
attribute directly as suggested by Amauary Forgeot d'Arc.
2008-10-02 17:24:21 +00:00
Anthony Tuininga
2737ae2f12 Clean up checking for platform and versions when checking for bdist_wininst and
bdist_msi - initial patch supplied by Amaury Forgeot d'Arc.
2008-10-02 17:09:47 +00:00
Anthony Tuininga
abecfc7631 Tweaked source as suggested by Amaury. 2008-10-02 14:31:59 +00:00
Anthony Tuininga
c852c66da1 Properly free the encoded string. 2008-10-01 13:38:32 +00:00
Anthony Tuininga
78703bea1b Add sample code for returning all strings as unicode strings. 2008-09-30 22:27:40 +00:00
Anthony Tuininga
b9d081ae12 Added support for specifying the arraysize of the variable being created. 2008-09-30 22:11:11 +00:00
Anthony Tuininga
e0e7675264 Verify that the variable returned can support the fetch. 2008-09-30 22:04:25 +00:00
Anthony Tuininga
ea3def86c5 Added support for returning unicode values for nchar and nvarchar data and
for binding unicode. Thanks to Amaury Forgeot d'Arc for the initial patch.
2008-09-30 18:11:45 +00:00
Anthony Tuininga
d1e5fa3737 Avoid overwriting the Oracle home value with None by the method that determines
if a valid Oracle home has been specified.
2008-09-29 14:29:11 +00:00
Anthony Tuininga
2938d07b35 Account for the situation where the directory passed in is the binary diretory
but the libraries are in a parallel directory.
2008-09-26 21:17:20 +00:00
Anthony Tuininga
33a2280ad1 Tweak setup.py to calculate the Oracle version and library directory up front
rather than during the actual build which allows correct specification of the
RPATH and clears up potential confusion since all of the code for checking such
things is now in one place.
2008-09-26 21:13:36 +00:00
Anthony Tuininga
6b1a551997 Use a cx_Oracle.Error instance rather than a string to hold the error as
requested by Helge Tesdal.
2008-09-26 04:52:47 +00:00
Anthony Tuininga
337ae2998f Added support for proxy authentication in session pools as requested by Michal
Wegrzynek (and thanks for the initial patch as well).
2008-09-15 19:41:54 +00:00
Anthony Tuininga
8072d8971f Added support for timestamp attributes in objects. 2008-09-12 22:46:08 +00:00
Anthony Tuininga
96f7decdce Merged 9i specific setup into standard setup since Oracle 8i support is no
longer required; change tabs to spaces; add test for fixed char data types.
2008-09-12 18:37:16 +00:00
Anthony Tuininga
16d796d70e Added support for fixed char and old style varchar attribute values. 2008-09-12 18:32:04 +00:00
Anthony Tuininga
479e1f138e Added comments indicating that an Oracle client is required since so many
people find this surprising.
2008-09-10 20:40:00 +00:00
Anthony Tuininga
432134ada8 The password can now be written. 2008-09-04 22:44:41 +00:00
Anthony Tuininga
d92f88d6a9 Added documentation on exception handling as requested by Andreas Mock, who
also graciously provided an initial patch.
2008-09-03 05:11:11 +00:00
Anthony Tuininga
edf5b6dd9a No need to reset the extraLinkArgs and doing so prevents simple modification
where desired as expressed by Christian Zagrodnick.
2008-08-28 13:49:10 +00:00
Anthony Tuininga
659da4554c Include the "cannot insert null value" in the list of errors that are treated
as integrity errors as requested by Matt Boersma.
2008-08-21 17:20:35 +00:00
Anthony Tuininga
780423a59e As requested by Helge Tesdal, allow an output type handler to be specified
at the connection and cursor levels. This handler will be called for each
variable being defined with the parameters cursor, name, defaultType, size,
precision and scale and expects to have a variable of the correct type
returned or None to indicate that default processing should take place.
2008-08-05 03:32:19 +00:00
Anthony Tuininga
64eeeabda7 Set end of line style on all files to native to ensure that they behave
properly on all platforms.
2008-07-27 01:12:48 +00:00
Anthony Tuininga
58c10b68ae Inital cut of support for DRCP and events mode as requested by Christopher
Jones.
2008-07-06 05:08:01 +00:00
Anthony Tuininga
93490d971d Removed support for Oracle 8i since Oracle support for it was dropped long
ago and adding support for Oracle 11g features would be very difficult
while attempting to retain Oracle 8i support.
2008-06-28 04:44:04 +00:00
Anthony Tuininga
a77bc411c6 Added proper detection for the instant client on Mac OS X as recommended by
Martijn Pieters.
2008-06-27 13:51:56 +00:00
Anthony Tuininga
d95d16db5f Ignore the cx_Oracle.egg-info directory that gets created by setuptools. 2008-06-11 03:53:07 +00:00
Anthony Tuininga
c60c1fdf69 Ensure that in Python 2.3 and 2.4 the bdist_wininst command renames the target
as well as in Python 2.5.
2008-06-11 03:51:05 +00:00
Anthony Tuininga
2c07de41fd Preparing to release 4.4. 2008-06-06 15:31:18 +00:00
Anthony Tuininga
6e9b4d897f Remove debugging code. 2008-06-04 18:40:14 +00:00
Anthony Tuininga
b1c77b8456 Added support for setting CLIENT_DRIVER in V$SESSION_CONNECT_INFO in Oracle 11g
and higher.
2008-06-04 17:28:43 +00:00
Anthony Tuininga
71d26018b7 Added preliminary history for changes for pending 4.4 release. 2008-06-02 19:24:20 +00:00
Anthony Tuininga
d11dcba0ea Attempt to use setuptools if possible and fall back to normal distutils if
setuptools is not found or installed.
2008-05-29 13:48:14 +00:00
Anthony Tuininga
e7dcdff522 Added line to make it easier to support setup tools if desired. 2008-05-28 20:46:00 +00:00
Anthony Tuininga
d32456f88d Fix support for packaging documentation after switching to reST format. 2008-05-28 20:43:47 +00:00
Anthony Tuininga
9b56028455 Set the default array size to 50 instead of 1 as the DB API suggests because
the performance difference is so drastic and many people have recommended that
the default be changed.
2008-05-23 15:58:11 +00:00
Anthony Tuininga
b8b97ac65a Mark all files as text files to use native line endings; also indicate that the
cursor attribute description is indeed an attribute and not a method.
2008-05-23 14:21:11 +00:00
Anthony Tuininga
dd2cc400db Clarify that callfunc() is an extension to the DB API. 2008-05-23 14:12:28 +00:00
Anthony Tuininga
e03f1003f3 The html directory always exists since it is checked into Subversion so there
is no need to create it.
2008-05-22 15:02:40 +00:00
Anthony Tuininga
4ce7d7955e Transformed documentation to new format using restructured text. Thanks to
Waldemar Osuch for contributing the initial draft of the new documentation.
2008-05-22 15:00:39 +00:00
Anthony Tuininga
be449a8048 Translated some error codes to OperationalError as requested by Matthew
Harriger; translated if/elseif/else logic to switch statement to make it more
readable and to allow for additional translation if desired.
2008-05-21 17:16:18 +00:00
Anthony Tuininga
239b5a6695 Cygwin is on Windows so should be treated in the same way as noted by Matthew
Cahn.
2008-04-09 04:47:19 +00:00
Anthony Tuininga
99abfa0e4a Add support for recognizing the Oracle instant client and building with it;
modify the libraries used for locating an Oracle installation on Windows to
those libraries that are commonly found in the full client as well as the
instant client.
2008-03-26 14:53:12 +00:00
Anthony Tuininga
29a63e2688 When dropping a connection from the pool, ignore any errors that occur during
the rollback; unfortunately, Oracle decides to commit data even when dropping
a connection from the pool instead of rolling it back so the attempt still
has to be made.
2008-03-21 23:00:50 +00:00
Anthony Tuininga
e875f9a5ae Allow the password to be overwritten by a new value as requested by Alex
VanderWoude; this value is retained as a convenience to the user and not used
by anything in the module; if changed externally it may be convenient to keep
this copy up to date.
2008-03-21 22:37:17 +00:00
Anthony Tuininga
236e494456 Defer type assignment when performing executemany() until the last possible
moment if the value being bound in is null as suggested by Dragos Dociu.
2008-03-21 22:13:51 +00:00
Anthony Tuininga
31ad9cd9c6 Added Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS around each blocking
call for LOBs as requested by Jason Conroy who also provided an initial patch
and performed a number of tests that demonstrate the new code is much more
responsive.
2008-03-21 21:29:13 +00:00
Anthony Tuininga
d6a778a3cc Specify that the version of Oracle 10 that is now primarily used is 10.2, not
10.1.
2007-11-20 15:26:21 +00:00
Anthony Tuininga
43dcfe1ea8 Use cx_Oracle.InterfaceError rather than the builtin RuntimeError as requested
by Luke Mewburn since the error is specific to Oracle and someone attempting to
catch any exception cannot simply use cx_Oracle.Error.
2007-10-31 13:38:51 +00:00