121 Commits

Author SHA1 Message Date
Anthony Tuininga
660898ecda Add support for showing the OCI client version that cx_Oracle was compiled
against which can be fairly useful.
2008-10-14 20:33:51 +00:00
Anthony Tuininga
3d6a346932 Added new test case for full unicode support in Python 2.x. 2008-10-14 16:54:00 +00:00
Anthony Tuininga
eae705cef1 Rename additional macro as suggested by Amaury Forgeot d'Arc; added additional
support for full Unicode; in Python 2.x allow for keyword arguments which use
strings and simply convert them to Unicode on the way through.
2008-10-14 16:53:05 +00:00
Anthony Tuininga
030d6528b5 Fix handling of unicode on narrow build machines now that byte length semantics
are being used in all cases.
2008-10-14 16:12:13 +00:00
Anthony Tuininga
7d67968e3a Rename macros as suggested by Amaury Forgeot d'Arc. 2008-10-14 15:55:37 +00:00
Anthony Tuininga
2e26d0beb8 Continued work on Unicode support; added new test cases for full unicode
support within Python 2.x; move away from character semantics which Oracle is
deprecating anyway to byte semantics which should hopefully eliminate the
problem with a backend character set of UTF-8.
2008-10-14 04:51:43 +00:00
Anthony Tuininga
45faba4a48 Further work on supporting Unicode. 2008-10-11 05:04:26 +00:00
Anthony Tuininga
82747e408c Added support for establishing connections to Oracle using Unicode while
retaining support for establishing connections using ASCII strings.
2008-10-10 20:06:34 +00:00
Anthony Tuininga
dcb996e338 Explicitly drop support for versions earlier than Python 2.3 with the advent
of Python 2.6.
2008-10-10 04:30:53 +00:00
Anthony Tuininga
c424a823a8 First cut at adding support for full unicode which is required by Python 3 but
the code is structured so that this can be done with Python 2.x as well if
desired; the only thing currently working is the determination of error
messages.
2008-10-10 04:18:05 +00:00
Anthony Tuininga
4271cb4af4 If the variable creation fails, don't use the result! 2008-10-09 22:01:34 +00:00
Anthony Tuininga
a2466272b5 Expose the DATETIME variable type properly instead of using the return value
type; thanks to Amaury Forgeot d'Arc for pointing out this discrepancy.
2008-10-09 21:59:09 +00:00
Anthony Tuininga
1a5c2bfaa7 To be consistent with the output converter always call the input converter
even if the value coming is is null.
2008-10-09 13:35:48 +00:00
Anthony Tuininga
c857cb1f0b Fix reference to input type handler. 2008-10-09 13:32:32 +00:00
Anthony Tuininga
08e308b83b Added support for specifying an input type handler to control what kind of
variable is created and eliminated the leak when an output type handler would
be specified.
2008-10-08 22:41:47 +00:00
Anthony Tuininga
79679142d2 Added support for specifying converters for both input and output. 2008-10-08 19:11:23 +00:00
Anthony Tuininga
bb3bd2e6f1 Add a comment warning that parameters not passed in during subsequent
executions of a statement will retain their original values as requested by
Harald Armin Massa.
2008-10-08 18:35:26 +00:00
Anthony Tuininga
ad280fecc5 Make use of struct.calcsize rather than sys.maxint which is dropped in Python
3.0.
2008-10-04 03:29:40 +00:00
Anthony Tuininga
83371127bc Use members rather than code in tp_getattro to fetch the members for the
external object variable which enables better code going forward into Python
3.0. Thanks to Amaury Forgeot d'Arc once again.
2008-10-03 04:13:51 +00:00
Anthony Tuininga
8e506ceeea Make a base type for all variables so that the attributes and methods are
shared without having to specify such; remove references to methods that get
the attributes and methods dynamically since these are deprecated in Python 2.6
and above. Thanks to Amaury Forgeot d'Arc for the initial patch.
2008-10-02 19:00:06 +00:00
Anthony Tuininga
6c13ccbe5f Use macro PyVarObject_HEAD_INIT as suggested by Amaury Forgeot d'Arc in order
to facilitate migration to Python 3.0.
2008-10-02 17:34:16 +00:00
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