21 Commits

Author SHA1 Message Date
Anthony Tuininga
3f701549c7 Correct variable references. 2016-02-05 19:37:51 -07:00
Anthony Tuininga
84cd718977 Added support for Transaction Guard by including the attributes
connection.ltxid and error.isrecoverable as well as a sample that indicates
how it could be used.
2016-01-26 14:19:45 -07:00
Anthony Tuininga
c863777917 Added support for pickling/unpickling error objects; this addresses issue 23
(https://bitbucket.org/anthony_tuininga/cx_oracle/issues/23/cx_oracle_error-is-not-un-picklable)
2016-01-20 16:39:25 -07:00
Anthony Tuininga
85b6adeb6b Reorganize the code for handling errors so that the same code can be used for
managing batch errors as well as raising exceptions in the ordinary case.
2015-02-25 21:50:30 -07:00
Anthony Tuininga
22251879ba Use the constant defined by Oracle rather than a hard coded amount. 2014-09-22 18:37:40 -06:00
Anthony Tuininga
6aa817956f OCI_ATTR_PARSE_ERROR_OFFSET should be of type ub2; also handle case when the
exception has been normalized already (and with this change force the exception
to be normalized) as in that case the cx_Oracle.Error object is not directly
accessible as originally assumed (which caused a segfault to take place).
2014-05-13 15:09:34 -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
919c5b4559 Implemented a parse error offset as requested by Catherine Devlin. 2009-05-21 04:51:00 +00:00
Anthony Tuininga
607f9019d1 Call the type's tp_free and tp_alloc methods at all times in order to deal with
inheritance properly; use "self" at all times in the constructor and destructor
routines.
2009-01-06 15:46:54 +00:00
Anthony Tuininga
489db58509 Make Visual Studio happy as it doesn't like variables declared after any code
has been executed.
2008-10-23 13:44:02 +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
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
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
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
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
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
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
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