Anthony Tuininga
699d1eef58
Reverse the comparison for character data or bad things can happen!
2008-10-17 04:06:29 +00:00
Anthony Tuininga
3e55613248
Replace all occurrences of PyInt_AS_LONG with PyInt_AsLong since Python 3.x
...
doesn't have a separate integer type.
2008-10-17 03:04:48 +00:00
Anthony Tuininga
c2fbe9a801
Further work toward supporting Python 3.x.
2008-10-16 21:37:08 +00:00
Anthony Tuininga
60cd74aed4
Use sb4 instead of int in order to handle 64-bit platforms properly.
2008-10-16 16:31:35 +00:00
Anthony Tuininga
4d2a8c57de
Dropped support for Python 2.3.
2008-10-16 04:19:14 +00:00
Anthony Tuininga
5bf582907c
Remove remaining references to PyString_* functions to enable support for full
...
Unicode mode and eventual support for Python 3.x.
2008-10-16 04:08:15 +00:00
Anthony Tuininga
d8f9b4687e
Tweaks to make pickier compilers happy and handle wide unicode correctly.
2008-10-16 02:31:04 +00:00
Anthony Tuininga
515bca0f96
All test cases now run correctly in Unicode mode. There are still additional
...
things that need to be dealt with but the majority of the code has now been
transformed to use either Unicode or encoded strings with Oracle.
2008-10-15 22:45:29 +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
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
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
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
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
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
abecfc7631
Tweaked source as suggested by Amaury.
2008-10-02 14:31:59 +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
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
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
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
21f1839d1a
Fixed support for native doubles and floats in Oracle 10g; added new type
...
NATIVE_FLOAT to allow specification of a variable of that specific type where
desired. Thanks to D.R. Boxhoorn for pointing out the fact that this was not
working properly when the arraysize was anything other than 1.
2007-06-27 14:34:34 +00:00
Anthony Tuininga
5025b4eb22
Replaced all tabs with spaces.
2007-06-27 14:00:34 +00:00
Anthony Tuininga
5ef057e325
When copying the value of a variable, copy the return code as well.
2007-06-13 21:27:38 +00:00
Anthony Tuininga
104e11b67a
Last public release from Computronix.
2007-06-13 21:15:16 +00:00