Commit Graph

  • ab360bfb4e Re-enable parsing of non select statements as requested by Ray Terrill. Anthony Tuininga 2009-04-22 17:50:09 +00:00
  • 6d427015b3 Included the MSVC library path as requested by Jason Coombs. Anthony Tuininga 2009-04-21 22:14:50 +00:00
  • ca3fb5019e Remove the reference to only working on non-Windows platforms since others have reported that the call does in fact work -- at least on some versions of Windows. Anthony Tuininga 2009-04-20 14:32:58 +00:00
  • b96a806dd8 Fix creation of temporary NCLOB values and the writing of NCLOB values in non Unicode mode. Anthony Tuininga 2009-03-25 17:46:09 +00:00
  • 4c1f524838 Use full path on Windows. Anthony Tuininga 2009-03-04 15:08:02 +00:00
  • 717763d3a8 Ensure that the current release is built last so that source RPMs have the correct Python reference in them. Anthony Tuininga 2009-03-04 04:21:47 +00:00
  • 885e0f55f7 Created script for producing releases of cx_Oracle so that they are created consistently. Anthony Tuininga 2009-03-04 03:43:53 +00:00
  • 04a4428fee Add additional cast as requested by Marco de Paoli in order to support compiling with Microsoft Visual C++ 2008. Anthony Tuininga 2009-03-02 21:58:52 +00:00
  • f96e0adefd Clean up some poorly proofread documentation! Anthony Tuininga 2009-02-20 04:33:13 +00:00
  • fae8e5b72b Fix duplicate reference. Anthony Tuininga 2009-02-19 03:51:52 +00:00
  • 68621559ee Fix typo. Anthony Tuininga 2009-02-17 03:41:22 +00:00
  • d5f4f96316 Modified documentation to include proper version. Anthony Tuininga 2009-02-16 18:50:23 +00:00
  • d4e2d0a8d7 Added note indicating that the code was changed to support compilation with version 3.0.1 of Python. Anthony Tuininga 2009-02-16 18:22:27 +00:00
  • 5017d36c46 Use the PyNumber_Long method as required in Python 3.0.1 and higher but the older version in Python 2.x. Anthony Tuininga 2009-02-16 18:19:32 +00:00
  • 97a951102d Preparing to release version 5.0.1. Anthony Tuininga 2009-02-16 17:38:42 +00:00
  • 03547fb481 Rebuilt the html from scratch in order to tidy up a few pointers and references to dates. Anthony Tuininga 2009-02-16 17:37:43 +00:00
  • cd6808a764 Added html that was missed in previous commit. Anthony Tuininga 2009-02-16 17:33:17 +00:00
  • 3e58b423f4 Added documentation for the support for database change notification; rearranged documentation on module constants since there are so many of them and they can be reasonably grouped by the feature that uses them. Anthony Tuininga 2009-02-16 17:32:41 +00:00
  • ac79165f4d Drop these constants as well since there is no known use for them in cx_Oracle and very little information in Oracle documentation about their use. Anthony Tuininga 2009-02-16 16:37:02 +00:00
  • e82882eee4 Drop this constant also since it is not part of the standard Oracle documentation for the database change notification feature. Anthony Tuininga 2009-02-16 16:31:02 +00:00
  • b308d48add Drop constant DROP_DB which is not very well documented by Oracle and doesn't appear to serve any particular purpose. Anthony Tuininga 2009-02-16 16:10:27 +00:00
  • 7dff4df916 Fix typo. Anthony Tuininga 2009-02-05 14:57:57 +00:00
  • bdca81b3e4 Added sample code to demonstrate the use of database change notification. Anthony Tuininga 2009-01-08 15:35:24 +00:00
  • c303b373b3 Use native line endings on all Python files. Anthony Tuininga 2009-01-08 15:33:22 +00:00
  • 46eeb000b5 Added support for the rows in the change notification message. Anthony Tuininga 2009-01-08 15:16:18 +00:00
  • 825c78c87c Added tables to the message that is produced. Anthony Tuininga 2009-01-08 05:40:59 +00:00
  • 19c890c505 Avoid warning about signedness in argument. Anthony Tuininga 2009-01-07 22:58:08 +00:00
  • 7fc7ede45d Added support for passing the message to the handler and populating it with the initial information that will be useful; add the OCI constants to the module in order to enable different values for subscriptions as well as decode the message data. Anthony Tuininga 2009-01-07 22:55:14 +00:00
  • 78d619cfb6 Added initial support for database change notification. Anthony Tuininga 2009-01-07 21:13:49 +00:00
  • e00d8dc231 Allow events mode to be set in Oracle 10g as well. Anthony Tuininga 2009-01-07 20:30:10 +00:00
  • b32352b54c Don't lose the Python lock before all possible Python code has been executed. Anthony Tuininga 2009-01-07 15:50:16 +00:00
  • 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. Anthony Tuininga 2009-01-06 20:58:34 +00:00
  • 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. Anthony Tuininga 2009-01-06 20:54:24 +00:00
  • 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. Anthony Tuininga 2009-01-06 15:46:54 +00:00
  • 2d74315e15 Add entry to HISTORY.txt in preparation for release of 5.0.1 early in the new year. Anthony Tuininga 2008-12-17 15:46:11 +00:00
  • 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. Anthony Tuininga 2008-12-16 21:47:56 +00:00
  • 622f33f911 Added additional classifiers to make it clear that cx_Oracle supports version 3 of Python as recommended by Amaury Forgeot d'Arc. Anthony Tuininga 2008-12-15 15:02:19 +00:00
  • 93276dc439 There is no longer any need for the date section since Python 2.4 is the minimum release supported. Anthony Tuininga 2008-12-11 21:15:25 +00:00
  • e123e93576 Preparing to release version 5.0. Anthony Tuininga 2008-12-11 21:01:18 +00:00
  • 278b0ecf2a Modified HISTORY.txt in preparation for the release of cx_Oracle 5.0. Anthony Tuininga 2008-12-10 03:45:06 +00:00
  • 7dd6a588c1 Reset commit mode back to default after committing so that local and global transactions can be mixed on the same connection. Anthony Tuininga 2008-12-08 20:32:29 +00:00
  • 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. Anthony Tuininga 2008-12-08 19:51:18 +00:00
  • 15cbc242cb Further modifications suggested by Corey Gaff. Anthony Tuininga 2008-12-06 22:14:43 +00:00
  • ce74a5db5b Reorganized README.txt and added new file BUILD.txt based on an initial patch from Corey Gaff. Anthony Tuininga 2008-12-05 05:09:39 +00:00
  • d802a08e9b Calculate whether or not a 64-bit platform is in use properly. Anthony Tuininga 2008-11-29 18:54:41 +00:00
  • 231377127e Added support for interval day to second in Oracle, represented as Python datetime.timedelta objects. Anthony Tuininga 2008-11-25 15:59:16 +00:00
  • c0aada7534 Use native line endings on all Python files. Anthony Tuininga 2008-11-24 23:48:44 +00:00
  • 4b208c603a Ensure memory is freed if the acuisition of the bind names fails entirely. Anthony Tuininga 2008-11-21 16:08:51 +00:00
  • c4a17177aa Added support for getting and setting the current_schema attribute on a session. Anthony Tuininga 2008-11-19 22:51:51 +00:00
  • 903914b669 Added support for changing the password of a connection using a new method changepassword() as requested by Alex VanderWoude. Anthony Tuininga 2008-11-16 05:53:59 +00:00
  • 99510c84d5 Add support for changing the password during connection in order to handle expired passwords. Anthony Tuininga 2008-11-16 03:34:35 +00:00
  • 2fc59ecb8d Ensure that the cloned environment is retained until all environment objects that were cloned from it have been destroyed. Anthony Tuininga 2008-11-11 21:55:56 +00:00
  • 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. Anthony Tuininga 2008-11-11 21:25:05 +00:00
  • 39333aa7d4 Added additional test for errors taking place in connections acquired from a session pool. Anthony Tuininga 2008-11-11 21:21:31 +00:00
  • 5b6a9b017a Raise a cx_Oracle.Error instance for invalid handle as well in order to make debugging of such error messages simpler. Anthony Tuininga 2008-11-11 20:38:06 +00:00
  • 98f928a819 When a connection is acquired from the pool the session handle is not directly available so grab it from the main handle instead. Anthony Tuininga 2008-11-11 20:35:25 +00:00
  • f63f47639c Added history items from branch. Anthony Tuininga 2008-10-30 14:34:13 +00:00
  • 5026f7049b Use native line endings on all text files. Anthony Tuininga 2008-10-29 00:45:27 +00:00
  • 802fa9b617 Added additional link arguments for Cygwin as requested by Rob Gillen. Anthony Tuininga 2008-10-29 00:24:11 +00:00
  • 9fe9f103d4 Added documentation for the fetchvars and bindvars attributes on cursors. Anthony Tuininga 2008-10-28 17:18:43 +00:00
  • 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. Anthony Tuininga 2008-10-24 13:56:33 +00:00
  • 489db58509 Make Visual Studio happy as it doesn't like variables declared after any code has been executed. Anthony Tuininga 2008-10-23 13:44:02 +00:00
  • 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. Anthony Tuininga 2008-10-22 18:31:31 +00:00
  • 4692ae6a71 Never mind using row_factory, the signature of the method is different. Anthony Tuininga 2008-10-19 04:54:53 +00:00
  • 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. Anthony Tuininga 2008-10-17 22:53:20 +00:00
  • 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. Anthony Tuininga 2008-10-17 16:39:30 +00:00
  • 8f099cfbc1 Added sample demonstrating how CLOB and BLOB values can be returned as long strings in order to reduce network latency. Anthony Tuininga 2008-10-17 15:13:31 +00:00
  • 6b8ab25684 Tweak test cases to run properly under Python 3.x. Anthony Tuininga 2008-10-17 04:46:26 +00:00
  • 9f0125410b Cleaned up the test cases for long variables thanks to some closer looks after they failed with Python 3.x initially. Anthony Tuininga 2008-10-17 04:09:35 +00:00
  • 699d1eef58 Reverse the comparison for character data or bad things can happen! Anthony Tuininga 2008-10-17 04:06:29 +00:00
  • 8854fdde7d Set up test cases for Python 3.x. Anthony Tuininga 2008-10-17 03:51:38 +00:00
  • 93bdbb7425 Replace PyBytes_ with cxString to make Python 3.x happy. Anthony Tuininga 2008-10-17 03:30:07 +00:00
  • 49f9c14f97 Final changes required to make cx_Oracle compile with Python 3.x. Anthony Tuininga 2008-10-17 03:23:25 +00:00
  • 3e55613248 Replace all occurrences of PyInt_AS_LONG with PyInt_AsLong since Python 3.x doesn't have a separate integer type. Anthony Tuininga 2008-10-17 03:04:48 +00:00
  • c2fbe9a801 Further work toward supporting Python 3.x. Anthony Tuininga 2008-10-16 21:37:08 +00:00
  • 5e7c3bbd86 Add missing StringBuffer_Clear() method calls. Anthony Tuininga 2008-10-16 17:12:41 +00:00
  • 60cd74aed4 Use sb4 instead of int in order to handle 64-bit platforms properly. Anthony Tuininga 2008-10-16 16:31:35 +00:00
  • 373e79572d Fix comments. Anthony Tuininga 2008-10-16 15:36:41 +00:00
  • 2375320d5b Fix check for macro. Anthony Tuininga 2008-10-16 13:46:24 +00:00
  • 28a8cf42be Add macros for backwards compatibility if needed. Anthony Tuininga 2008-10-16 04:25:36 +00:00
  • 4d2a8c57de Dropped support for Python 2.3. Anthony Tuininga 2008-10-16 04:19:14 +00:00
  • 5bf582907c Remove remaining references to PyString_* functions to enable support for full Unicode mode and eventual support for Python 3.x. Anthony Tuininga 2008-10-16 04:08:15 +00:00
  • 83346b8975 Restore commented out code. Anthony Tuininga 2008-10-16 03:58:53 +00:00
  • d50847e92b Convert object type handling to use new cxString functions and add test case to ensure that it was done correctly. Anthony Tuininga 2008-10-16 03:25:30 +00:00
  • bef9439b3e Remove refernces to PyString and replace with appropriate calls to cxString or PyBytes. Anthony Tuininga 2008-10-16 03:24:33 +00:00
  • 69def313e3 Tweaks to make wide unicode builds work and eliminate potential memory leak. Anthony Tuininga 2008-10-16 02:47:29 +00:00
  • d8f9b4687e Tweaks to make pickier compilers happy and handle wide unicode correctly. Anthony Tuininga 2008-10-16 02:31:04 +00:00
  • 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. Anthony Tuininga 2008-10-15 22:45:29 +00:00
  • cee9021d81 Added support for additional test cases for full unicode support in Python 2.x; added support for specifying on the command line a list of modules to test. Anthony Tuininga 2008-10-14 22:37:38 +00:00
  • 432d830f20 This information is already available via clientversion() so there is no need for it and in fact may be confusing. Anthony Tuininga 2008-10-14 21:30:44 +00:00
  • 660898ecda Add support for showing the OCI client version that cx_Oracle was compiled against which can be fairly useful. Anthony Tuininga 2008-10-14 20:33:51 +00:00
  • 3d6a346932 Added new test case for full unicode support in Python 2.x. Anthony Tuininga 2008-10-14 16:54:00 +00:00
  • 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. Anthony Tuininga 2008-10-14 16:53:05 +00:00
  • 030d6528b5 Fix handling of unicode on narrow build machines now that byte length semantics are being used in all cases. Anthony Tuininga 2008-10-14 16:12:13 +00:00
  • 7d67968e3a Rename macros as suggested by Amaury Forgeot d'Arc. Anthony Tuininga 2008-10-14 15:55:37 +00:00
  • 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. Anthony Tuininga 2008-10-14 04:51:43 +00:00
  • 45faba4a48 Further work on supporting Unicode. Anthony Tuininga 2008-10-11 05:04:26 +00:00
  • 82747e408c Added support for establishing connections to Oracle using Unicode while retaining support for establishing connections using ASCII strings. Anthony Tuininga 2008-10-10 20:06:34 +00:00
  • dcb996e338 Explicitly drop support for versions earlier than Python 2.3 with the advent of Python 2.6. Anthony Tuininga 2008-10-10 04:30:53 +00:00
  • 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. Anthony Tuininga 2008-10-10 04:18:05 +00:00