Anthony Tuininga
cb3f833a63
Added support for binding objects and setting attributes on objects of numbers,
...
strings and dates.
2016-02-09 14:51:30 -07:00
Anthony Tuininga
b05d71b386
Use the national character set encoding if setting a value with the national
...
character set needing to be used; otherwise, the wrong encoding could be used
if the environment variable NLS_NCHAR is set.
2015-08-28 11:05:17 -06:00
Anthony Tuininga
3c36e8cde3
Added support for NCHAR, FIXED_NCHAR and LONG_NCHAR, which are the same as the
...
types UNICODE, FIXED_UNICODE and LONG_UNICODE (now deprecated).
2015-06-06 21:01:37 -06:00
Anthony Tuininga
faadbe4730
Remove code specific to strings being 4000 characters now that Oracle 12c has
...
the ability to have strings up to 32k characters. This implies that using
setinputsizes() is necessary if a long string type is desired as this will not
occur automatically when the string exceeds 4000 characters. Tests are tidied
up to remove the "p_" prefix from all bind variables.
2014-09-04 22:33:08 -06:00
Anthony Tuininga
d255b7457f
Expose the UNICODE, FIXED_UNICODE and LONG_UNICODE types so that in Python 3
...
one can actually specify the use of the NCHAR type fields when binding or using
setinputsizes().
2014-07-07 12:41:37 -06:00
Anthony Tuininga
4838055084
Ensure that in Python 3 NCHAR and NVARCHAR2 and NCLOB columns are retrieved
...
properly without conversion issues. Thanks to Joakim Andersson for pointing
out the issue and the possible solution.
2014-05-16 22:33:35 -06:00
Anthony Tuininga
04f1904a7d
Remove "unicode" mode and simply permit unicode to be used everywhere within
...
cx_Oracle; stop using "unicode" mode in the OCI as well since that appears to
have bugs in some places and doesn't really solve any problems anyway.
2011-02-19 03:50:16 +00:00
Anthony Tuininga
9be85a356c
Free temporary LOBs prior to each fetch in order to avoid leaking them; thanks
...
to Uwe Hoffmann for the initial patch.
2011-01-04 05:55:54 +00:00
Anthony Tuininga
c6603b324d
Add new attributes size, bufferSize and numElements to variable objects,
...
deprecating allocelems (replaced by numElements) and maxlength (replaced by
bufferSize); avoid increasing memory allocation for strings when using variable
width character sets and increasing the number of elements in a variable during
executemany(). Thanks to Don Reid for pointing out this issue.
2009-01-06 20:58:34 +00:00
Anthony Tuininga
c2fbe9a801
Further work toward supporting Python 3.x.
2008-10-16 21:37:08 +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
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
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
c852c66da1
Properly free the encoded string.
2008-10-01 13:38:32 +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
5025b4eb22
Replaced all tabs with spaces.
2007-06-27 14:00:34 +00:00
Anthony Tuininga
104e11b67a
Last public release from Computronix.
2007-06-13 21:15:16 +00:00