180 Commits

Author SHA1 Message Date
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
259c468302 Use new version of Sphinx (one used with Python 2.6 documentation) to generate
documents; add documentation for new variable attributes; bump copyright into
2009.
2009-01-06 20:54:24 +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
2d74315e15 Add entry to HISTORY.txt in preparation for release of 5.0.1 early in the new
year.
2008-12-17 15:46:11 +00:00
Anthony Tuininga
6e899f435e NCLOB variables need to be retained even in Unicode mode as Oracle will not
allow you to read/write those type of LOB values with SQLCS_IMPLICIT for
reasons known only to itself.
2008-12-16 21:47:56 +00:00
Anthony Tuininga
622f33f911 Added additional classifiers to make it clear that cx_Oracle supports version 3
of Python as recommended by Amaury Forgeot d'Arc.
2008-12-15 15:02:19 +00:00
Anthony Tuininga
93276dc439 There is no longer any need for the date section since Python 2.4 is the
minimum release supported.
2008-12-11 21:15:25 +00:00
Anthony Tuininga
e123e93576 Preparing to release version 5.0. 2008-12-11 21:01:18 +00:00
Anthony Tuininga
278b0ecf2a Modified HISTORY.txt in preparation for the release of cx_Oracle 5.0. 2008-12-10 03:45:06 +00:00
Anthony Tuininga
7dd6a588c1 Reset commit mode back to default after committing so that local and global
transactions can be mixed on the same connection.
2008-12-08 20:32:29 +00:00
Anthony Tuininga
bd5915a435 As requested by Gordon den Otter, return a boolean from connection.prepare()
indicating whether or not a transaction has been prepared for commit so that
the error ORA-24756 (transaction does not exist) can be avoided.
2008-12-08 19:51:18 +00:00
Anthony Tuininga
15cbc242cb Further modifications suggested by Corey Gaff. 2008-12-06 22:14:43 +00:00
Anthony Tuininga
ce74a5db5b Reorganized README.txt and added new file BUILD.txt based on an initial patch
from Corey Gaff.
2008-12-05 05:09:39 +00:00
Anthony Tuininga
d802a08e9b Calculate whether or not a 64-bit platform is in use properly. 2008-11-29 18:54:41 +00:00
Anthony Tuininga
231377127e Added support for interval day to second in Oracle, represented as Python
datetime.timedelta objects.
2008-11-25 15:59:16 +00:00
Anthony Tuininga
c0aada7534 Use native line endings on all Python files. 2008-11-24 23:48:44 +00:00
Anthony Tuininga
4b208c603a Ensure memory is freed if the acuisition of the bind names fails entirely. 2008-11-21 16:08:51 +00:00
Anthony Tuininga
c4a17177aa Added support for getting and setting the current_schema attribute on a
session.
2008-11-19 22:51:51 +00:00
Anthony Tuininga
903914b669 Added support for changing the password of a connection using a new method
changepassword() as requested by Alex VanderWoude.
2008-11-16 05:53:59 +00:00
Anthony Tuininga
99510c84d5 Add support for changing the password during connection in order to handle
expired passwords.
2008-11-16 03:34:35 +00:00
Anthony Tuininga
2fc59ecb8d Ensure that the cloned environment is retained until all environment objects
that were cloned from it have been destroyed.
2008-11-11 21:55:56 +00:00
Anthony Tuininga
3e6a6ef8b2 Use the same environment handle in connections acquired from the pool as using
a new environment handle results in strange errors in certain situations.
2008-11-11 21:25:05 +00:00
Anthony Tuininga
39333aa7d4 Added additional test for errors taking place in connections acquired from a
session pool.
2008-11-11 21:21:31 +00:00
Anthony Tuininga
5b6a9b017a Raise a cx_Oracle.Error instance for invalid handle as well in order to make
debugging of such error messages simpler.
2008-11-11 20:38:06 +00:00
Anthony Tuininga
98f928a819 When a connection is acquired from the pool the session handle is not directly
available so grab it from the main handle instead.
2008-11-11 20:35:25 +00:00
Anthony Tuininga
f63f47639c Added history items from branch. 2008-10-30 14:34:13 +00:00
Anthony Tuininga
5026f7049b Use native line endings on all text files. 2008-10-29 00:45:27 +00:00
Anthony Tuininga
802fa9b617 Added additional link arguments for Cygwin as requested by Rob Gillen. 2008-10-29 00:24:11 +00:00
Anthony Tuininga
9fe9f103d4 Added documentation for the fetchvars and bindvars attributes on cursors. 2008-10-28 17:18:43 +00:00
Anthony Tuininga
79f1483a28 Make the bind variables and fetch variables accessible although they need to be
treated carefully since they are used internally; return the cursor from
the execute() method as a convenience.
2008-10-24 13:56:33 +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
324a4a8824 Use struct.calcsize('P') to determine the size of a pointer rather than
depend on the value of sys.maxint which differs on 64-bit platforms.
2008-10-22 18:31:31 +00:00
Anthony Tuininga
4692ae6a71 Never mind using row_factory, the signature of the method is different. 2008-10-19 04:54:53 +00:00
Anthony Tuininga
080b53f147 Use row_factory in preference to rowfactory since the builtin sqlite3 module
does it that way and its better to be compatible with such things.
2008-10-17 22:53:20 +00:00
Anthony Tuininga
ebc2437935 Make the bind variables and fetch variables accessible although they need to be
treated carefully since they are used internally; return the cursor from
the execute() method as a convenience.
2008-10-17 16:39:30 +00:00
Anthony Tuininga
8f099cfbc1 Added sample demonstrating how CLOB and BLOB values can be returned as long
strings in order to reduce network latency.
2008-10-17 15:13:31 +00:00
Anthony Tuininga
6b8ab25684 Tweak test cases to run properly under Python 3.x. 2008-10-17 04:46:26 +00:00
Anthony Tuininga
9f0125410b Cleaned up the test cases for long variables thanks to some closer looks after
they failed with Python 3.x initially.
2008-10-17 04:09:35 +00:00
Anthony Tuininga
699d1eef58 Reverse the comparison for character data or bad things can happen! 2008-10-17 04:06:29 +00:00
Anthony Tuininga
8854fdde7d Set up test cases for Python 3.x. 2008-10-17 03:51:38 +00:00
Anthony Tuininga
93bdbb7425 Replace PyBytes_ with cxString to make Python 3.x happy. 2008-10-17 03:30:07 +00:00
Anthony Tuininga
49f9c14f97 Final changes required to make cx_Oracle compile with Python 3.x. 2008-10-17 03:23:25 +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
5e7c3bbd86 Add missing StringBuffer_Clear() method calls. 2008-10-16 17:12:41 +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
373e79572d Fix comments. 2008-10-16 15:36:41 +00:00
Anthony Tuininga
2375320d5b Fix check for macro. 2008-10-16 13:46:24 +00:00
Anthony Tuininga
28a8cf42be Add macros for backwards compatibility if needed. 2008-10-16 04:25:36 +00:00
Anthony Tuininga
4d2a8c57de Dropped support for Python 2.3. 2008-10-16 04:19:14 +00:00