Commit Graph

  • 75f70a6058 Fixed two memoty leaks nleschev 2013-11-28 13:25:04 +04:00
  • 27361c5a23 Remove tabs in favor of spaces in order to be consistent with all of the other files. Anthony Tuininga 2013-10-19 22:10:23 -06:00
  • b473a7ebbc Add support for Oracle 12c. Anthony Tuininga 2013-10-19 21:57:58 -06:00
  • 851041ba39 Use different variable name to be more consistent with other code. Anthony Tuininga 2013-10-15 04:21:45 +00:00
  • 52810a4c81 64-bit fix to stop self.db.current_schema sometimes throwing MemoryError Andrew Horton 2013-10-06 10:21:47 +01:00
  • f80fc7f211 Use the actual name of the class, not a manufactured name. Anthony Tuininga 2013-04-02 13:16:11 -06:00
  • ed95a75b2c Ignore compiled Python files. Anthony Tuininga 2013-04-02 13:11:30 -06:00
  • ad64691904 Make ORACLE_VERSION_HEX easier to use Glen Walker 2012-11-23 15:02:46 +13:00
  • 3e63e0cc42 Add support for query result set change notification Glen Walker 2012-11-23 14:10:07 +13:00
  • 274af0289c Added tag 5.1.2 for changeset fb5d0b19e3ba Anthony Tuininga 2012-07-02 23:08:05 -06:00
  • 73d7b98dc6 Updated documentation and bumped copyright into 2012. Anthony Tuininga 2012-07-02 23:07:36 -06:00
  • ba7eee3133 Ignore the .build directory produced by Sphinx. Anthony Tuininga 2012-07-02 23:02:01 -06:00
  • c7ca9e22b6 Fix build so that there is no need to specify the python version within the source RPM as requested. Anthony Tuininga 2012-06-30 23:22:14 -06:00
  • 6ceb861f76 Ignore the MANIFEST file which is generated. Anthony Tuininga 2012-06-30 23:16:30 -06:00
  • 7556b56653 Preparing to release 5.1.2. Anthony Tuininga 2012-06-23 21:53:15 -06:00
  • d69f7e3a2b Add support for setting the module, action and client_info during connection so that logon triggers will see the values, as requested by Rodney Barnett. Anthony Tuininga 2012-05-29 12:01:55 -06:00
  • 3d0c96cb78 Set the row number for PL/SQL blocks as well as requested by Robert Ritchie. Anthony Tuininga 2012-03-27 09:44:27 -06:00
  • 96a3468db6 Added suport for LONG_UNICODE which is a type that is used to handle long unicode strings. These are not explicitly supported in Oracle but can be used to bind to NCLOB, for example, without getting the "unimplemented or unreasonable conversion requested" error. Anthony Tuininga 2012-03-17 21:23:37 -06:00
  • 43a2162791 Use canonical line endings for .hgignore. Anthony Tuininga 2012-03-03 20:09:13 -07:00
  • 16fd6cc242 The .hgignore file should also be converted to native line endings. Anthony Tuininga 2012-03-03 20:02:02 -07:00
  • d72e31ff7e Change line endings to canonical type (using eol extension). Anthony Tuininga 2012-03-03 20:01:45 -07:00
  • 20cc12d160 Use the eol extension to ensure that files are always checked out with the correct line endings for the platform in use. Anthony Tuininga 2012-03-03 19:57:04 -07:00
  • fc8418d60e Files which should be ignored. Anthony Tuininga 2012-03-03 19:40:53 -07:00
  • 8868eec788 update tags convert-repo 2012-03-04 00:58:10 +00:00
  • af21744a70 Ensure that the temporary LOB is freed before freeing the descriptor; it seems logical that freeing the descriptor should free the temporary LOB as well but apparently that is NOT the case! Anthony Tuininga 2012-02-12 03:47:13 +00:00
  • 451ea21d9b Preparing to release 5.1.1. Anthony Tuininga 2011-10-09 04:39:05 +00:00
  • 9f22833b29 The prefetch routine should only be run during fetches and not when the LOB variable is being destroyed! Doing so causes strange errors to be raised. Anthony Tuininga 2011-10-04 04:35:52 +00:00
  • 1859c2c211 Use OCI_UTF16ID for NCLOBs as the standard character set seems to cause problems with Oracle 11.2.0.2. Anthony Tuininga 2011-09-28 03:46:08 +00:00
  • b745877709 Fix cursor description to take into account the number of bytes per character. Anthony Tuininga 2011-09-28 01:17:45 +00:00
  • 960553534c Make use of the PyGILState_Ensure() and PyGILState_Release() methods which are available in Python 2.3 and up and greatly simplify the code surrounding thread handling in callbacks made by Oracle. The original code must have had some small issue in it that was tweaked under high load. Thanks to Calvin S. for noting the issue and supplying the suggested fix. Anthony Tuininga 2011-09-24 20:56:52 +00:00
  • dadf62cb9d Added tests for NCLOBs to the test suite. Anthony Tuininga 2011-09-02 03:44:48 +00:00
  • 0715624156 Added tests for NCLOBs to the test suite. Anthony Tuininga 2011-09-02 03:27:55 +00:00
  • 0be30d0a64 Added support for specifying the service_name in the dsn generated by makedsn() which can be done by not specifying a value for the sid (third parameter) and using the keyword parameter service_name instead. Anthony Tuininga 2011-08-28 04:20:07 +00:00
  • 2ed2c62111 Set native line endings on all text files. Anthony Tuininga 2011-06-22 18:17:51 +00:00
  • 03766e3363 Force server detach on close so that the connection is completely dead and not just the session as previously. Anthony Tuininga 2011-05-14 23:12:25 +00:00
  • 12dbe607cd Remove redundant code used for determining library path. Anthony Tuininga 2011-04-22 20:01:26 +00:00
  • 5ef77d7eae Update the documentation in preparation for the new release. Anthony Tuininga 2011-03-20 05:01:27 +00:00
  • bccdfccea8 Preparing to release 5.1. Anthony Tuininga 2011-03-20 04:57:10 +00:00
  • 79f8a9efc4 Update documentation for the addition of the typename argument to the constructor of variable objects. Anthony Tuininga 2011-03-20 04:55:42 +00:00
  • a9ebd12f76 Restore support for the encoding and nencoding attributes on a connection. Anthony Tuininga 2011-03-15 16:18:26 +00:00
  • edd2387f1c Ignore .pyc files; needed for CentOS. Anthony Tuininga 2011-02-19 03:56:57 +00:00
  • 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. Anthony Tuininga 2011-02-19 03:50:16 +00:00
  • 9be85a356c Free temporary LOBs prior to each fetch in order to avoid leaking them; thanks to Uwe Hoffmann for the initial patch. Anthony Tuininga 2011-01-04 05:55:54 +00:00
  • fb2e048851 Make AIX5 happy as OCIPing does not appear to be available on that platform under Oracle 10g Release 2. Thanks to Pierre-Yves Fontaniere for the patch. Anthony Tuininga 2011-01-01 05:07:20 +00:00
  • 0665dff62b Remove unnecessary code. Anthony Tuininga 2010-11-04 16:48:33 +00:00
  • cf2da5efc8 Check the result of freeing the handle if an exception should be raised; in addition, null the handle so that a second attempt is not made when the cursor is freed after close() has been called. Anthony Tuininga 2010-11-04 16:36:09 +00:00
  • 505018d577 Account for lib64 used on x86_64 systems. Thanks to Alex Wood for supplying the patch. Anthony Tuininga 2010-08-31 17:11:10 +00:00
  • b1b4c403fb Added support for creating an object variable via a named type -- the first step on the road to adding full object support. Anthony Tuininga 2010-07-31 05:32:30 +00:00
  • 03df2d9ede Preparing to release version 5.0.4. Anthony Tuininga 2010-07-14 05:08:19 +00:00
  • 85d368a21d Added support for new parameter (port) for subscription() call which allows the client to specify the listening port for callback notifications from the database server. Thanks to Geoffrey Weber for the initial patch. Anthony Tuininga 2010-07-14 04:40:11 +00:00
  • 8c3a69664f Provide a bit more information in the error message produced. Anthony Tuininga 2010-07-08 15:01:59 +00:00
  • 52d6cc88c3 Added support for building with Python 3.x from an independently created setup.py (as for cx_OracleDBATools, for example). Anthony Tuininga 2010-06-01 03:38:25 +00:00
  • 25274ca3fb Fix error message. Anthony Tuininga 2010-05-28 18:10:12 +00:00
  • 88666dbef7 Fix compilation under Oracle 9i. Anthony Tuininga 2010-05-26 21:28:10 +00:00
  • 33aa8fc246 Preparing to release version 5.0.3. Anthony Tuininga 2010-02-05 05:25:13 +00:00
  • 2646230de3 Bump copyright into 2010. Anthony Tuininga 2010-02-05 05:13:25 +00:00
  • 2a27248c94 Ensure that the data is stored as Unicode data as the original code stored the byte string exactly as shown in Oracle 11g Release 2. Anthony Tuininga 2010-01-29 05:01:08 +00:00
  • fc87c1df60 Enable building from within other setup.py scripts like those in cx_OracleTools, for example. Anthony Tuininga 2009-12-05 22:59:34 +00:00
  • 309437003e Fixed bug when converting from decimal would result in OCI-22062 because the locale decimal point was not a period. Thanks to Amaury Forgeot d'Arc for the solution to this problem. Anthony Tuininga 2009-11-20 05:53:37 +00:00
  • f3282b2ae2 Added check for attempts to call executemany() with arrays which are not supported by the OCI; thanks to Amaury Forgeot d'Arc for the suggestion. Anthony Tuininga 2009-11-20 05:42:57 +00:00
  • d2edff721d Set the PATH environment variable instead of ORACLE_HOME on Windows. Anthony Tuininga 2009-10-23 13:21:56 +00:00
  • 3c66a01739 Force termination with an error code if some tests fail. Anthony Tuininga 2009-10-22 04:24:46 +00:00
  • 4adc2550a1 Renamed to client_identifier as that is consistent with current_schema and is also much more readable anyway. Anthony Tuininga 2009-10-22 04:18:45 +00:00
  • a295178f22 Added support for setting the CLIENT_IDENTIFIER attribute on connections. Anthony Tuininga 2009-10-21 05:08:56 +00:00
  • df6225a230 Added support for running the test suite on all of the Python and Oracle versions configured for the machine. Anthony Tuininga 2009-10-21 02:12:14 +00:00
  • 4b63f554a5 Added support for running the test suite by running python setup.py test. Anthony Tuininga 2009-10-21 01:24:52 +00:00
  • 37362824f5 Ensure that Windows installer files also include the unicode designation when appropriate. Anthony Tuininga 2009-10-19 19:29:31 +00:00
  • c9c5f2316b Eliminate the spurious errors that take place because of the change in how numbers without any constraints are represented in Oracle 11g. Anthony Tuininga 2009-10-18 03:34:36 +00:00
  • e438e404b1 Tweaked release.py in order to use environment variables to define which Python versions to use for the release and also how to execute it. This is primarily because Mac OS X and 64-bit Windows do not support some of the older Python versions very well. Anthony Tuininga 2009-10-18 03:19:33 +00:00
  • e316a391e9 Tweaked documentation as requested by Alex Vanderwoude and in preparation for the release of 5.0.3. Anthony Tuininga 2009-10-18 03:04:50 +00:00
  • ab9ad78579 Added support for building "Unicode" builds independently of "normal" and get ready for releasing these types of builds with any new release. Anthony Tuininga 2009-10-11 04:33:25 +00:00
  • 0c859f8b87 Added support for named arguments in callproc() and callfunc() which make use of PL/SQL notation for making such calls. Anthony Tuininga 2009-09-29 04:56:31 +00:00
  • 1ef0f27b70 Change order of assignment in order to make VC++ happier. Anthony Tuininga 2009-09-28 15:51:41 +00:00
  • dcf9cac457 Release for Python 3.1 and not any longer for Python 3.0. Anthony Tuininga 2009-09-26 22:14:09 +00:00
  • fbd53fcee3 The newer versions of the instant client now simply replace "lib" with "include" in order to determine where the include files are to be found. Anthony Tuininga 2009-09-26 22:11:36 +00:00
  • 2741b72310 Preliminary work in releasing 5.0.3; documentation still needs to be built. Anthony Tuininga 2009-09-15 04:28:34 +00:00
  • 1470723453 Use the OCI_ATTR_CHAR_SIZE attribute to determine the character size of the value retrieved rather than attempt to assume things since the database character set plays a role in how this is determined and that information is not readily available. Thanks to Christopher Jones for the tip. Anthony Tuininga 2009-09-15 03:55:03 +00:00
  • d1973cbb99 Fix comments. Anthony Tuininga 2009-09-15 03:52:52 +00:00
  • 36c1f4d7dd current_schema is only valid for Oracle 10.2 and higher. Anthony Tuininga 2009-09-08 23:26:17 +00:00
  • 057f7ee133 Move the resetting of the setinputsizes flag to before the binding takes place so that if an error takes place and a new statement is prepared subsequently that spurious errors will not occur. Anthony Tuininga 2009-08-28 21:17:18 +00:00
  • 32eb81df40 The struct module needs to be defined as a global as well in order to make building as part of another setup.py possible. Anthony Tuininga 2009-08-25 03:17:12 +00:00
  • dbb4fadc84 Added additional error codes to those treated as operational errors as suggested by Christopher Jones. Anthony Tuininga 2009-08-25 03:10:24 +00:00
  • 16d30345e6 Add comment about maximum length that Oracle allows for the module attribute. Anthony Tuininga 2009-08-14 15:56:28 +00:00
  • 3876232e74 Use the correct type to avoid warnings. Anthony Tuininga 2009-08-14 15:54:20 +00:00
  • c8b805d644 Added ORA-3135 to the list of errors that raise OperationalError instead of DatabaseError as requested by Zherdev Anatoly. Anthony Tuininga 2009-08-14 15:50:09 +00:00
  • 7dc59bf171 Added additional comment stating that the connection should not be closed before all subscriptions have been deleted or the subscriptions will not be deregistered in the database. Anthony Tuininga 2009-07-02 13:47:24 +00:00
  • c8058c2b48 Added extra link arguments required for Mac OS X as suggested by Jason Woodward. Anthony Tuininga 2009-06-30 21:31:07 +00:00
  • 453dec9e27 Set native line endings for all Python files. Anthony Tuininga 2009-06-24 16:18:44 +00:00
  • e6484f98a2 Add support for searching lib32 or lib64 depending on whether the host is 32-bit or 64-bit. Thanks to Joe Shaw for the patch. Anthony Tuininga 2009-06-24 16:12:45 +00:00
  • c18c0148f3 Added documentation for the UNICODE and FIXED_UNICODE variable types. Anthony Tuininga 2009-06-19 13:40:13 +00:00
  • a650fd9638 Updated copyright notice to be consistent with other notices. Anthony Tuininga 2009-06-17 03:33:50 +00:00
  • a31a9b3ad8 The 64-bit Windows instant client uses a different library directory than the full client does. Anthony Tuininga 2009-06-10 18:53:25 +00:00
  • 3008fccc72 Tidy up a few release issues prior to actual release. Anthony Tuininga 2009-05-21 20:45:41 +00:00
  • a61a78bdb6 Eliminate warning about files that don't match patterns. Anthony Tuininga 2009-05-21 20:24:31 +00:00
  • 47b424f651 Final changes prior to releasing version 5.0.2. Anthony Tuininga 2009-05-21 20:03:53 +00:00
  • 919c5b4559 Implemented a parse error offset as requested by Catherine Devlin. Anthony Tuininga 2009-05-21 04:51:00 +00:00
  • a4a517ed4c Preparing to release version 5.0.2. Anthony Tuininga 2009-05-19 04:15:41 +00:00
  • 6751ce7e88 The actual location of the libraries is in the OCI subdirectory, not SDK. Anthony Tuininga 2009-05-06 18:56:51 +00:00
  • 4f8513cd3e Change copyright to me directly since WorleyParsons isn't interested in the copyright to these so long as they retain the right to access the source. Anthony Tuininga 2009-04-30 02:17:33 +00:00
  • aeb37e44fb Now that the library path is being calculated exactly there is no need to include the lib subdirectory as before. Anthony Tuininga 2009-04-30 02:09:21 +00:00