Commit Graph

  • 4271cb4af4 If the variable creation fails, don't use the result! Anthony Tuininga 2008-10-09 22:01:34 +00:00
  • a2466272b5 Expose the DATETIME variable type properly instead of using the return value type; thanks to Amaury Forgeot d'Arc for pointing out this discrepancy. Anthony Tuininga 2008-10-09 21:59:09 +00:00
  • 1a5c2bfaa7 To be consistent with the output converter always call the input converter even if the value coming is is null. Anthony Tuininga 2008-10-09 13:35:48 +00:00
  • c857cb1f0b Fix reference to input type handler. Anthony Tuininga 2008-10-09 13:32:32 +00:00
  • 08e308b83b Added support for specifying an input type handler to control what kind of variable is created and eliminated the leak when an output type handler would be specified. Anthony Tuininga 2008-10-08 22:41:47 +00:00
  • 79679142d2 Added support for specifying converters for both input and output. Anthony Tuininga 2008-10-08 19:11:23 +00:00
  • bb3bd2e6f1 Add a comment warning that parameters not passed in during subsequent executions of a statement will retain their original values as requested by Harald Armin Massa. Anthony Tuininga 2008-10-08 18:35:26 +00:00
  • ad280fecc5 Make use of struct.calcsize rather than sys.maxint which is dropped in Python 3.0. Anthony Tuininga 2008-10-04 03:29:40 +00:00
  • 83371127bc Use members rather than code in tp_getattro to fetch the members for the external object variable which enables better code going forward into Python 3.0. Thanks to Amaury Forgeot d'Arc once again. Anthony Tuininga 2008-10-03 04:13:51 +00:00
  • 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. Anthony Tuininga 2008-10-02 19:00:06 +00:00
  • 6c13ccbe5f Use macro PyVarObject_HEAD_INIT as suggested by Amaury Forgeot d'Arc in order to facilitate migration to Python 3.0. Anthony Tuininga 2008-10-02 17:34:16 +00:00
  • 817186b16e Raise errors as instances of setup errors, not strings in order to provide initial support for Python 3.0. Anthony Tuininga 2008-10-02 17:28:23 +00:00
  • 243849a5ff Use Py_TYPE to determine the type of an object rather than referencing the attribute directly as suggested by Amauary Forgeot d'Arc. Anthony Tuininga 2008-10-02 17:24:21 +00:00
  • 2737ae2f12 Clean up checking for platform and versions when checking for bdist_wininst and bdist_msi - initial patch supplied by Amaury Forgeot d'Arc. Anthony Tuininga 2008-10-02 17:09:47 +00:00
  • abecfc7631 Tweaked source as suggested by Amaury. Anthony Tuininga 2008-10-02 14:31:59 +00:00
  • c852c66da1 Properly free the encoded string. Anthony Tuininga 2008-10-01 13:38:32 +00:00
  • 78703bea1b Add sample code for returning all strings as unicode strings. Anthony Tuininga 2008-09-30 22:27:40 +00:00
  • b9d081ae12 Added support for specifying the arraysize of the variable being created. Anthony Tuininga 2008-09-30 22:11:11 +00:00
  • e0e7675264 Verify that the variable returned can support the fetch. Anthony Tuininga 2008-09-30 22:04:25 +00:00
  • 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. Anthony Tuininga 2008-09-30 18:11:45 +00:00
  • d1e5fa3737 Avoid overwriting the Oracle home value with None by the method that determines if a valid Oracle home has been specified. Anthony Tuininga 2008-09-29 14:29:11 +00:00
  • 2938d07b35 Account for the situation where the directory passed in is the binary diretory but the libraries are in a parallel directory. Anthony Tuininga 2008-09-26 21:17:20 +00:00
  • 33a2280ad1 Tweak setup.py to calculate the Oracle version and library directory up front rather than during the actual build which allows correct specification of the RPATH and clears up potential confusion since all of the code for checking such things is now in one place. Anthony Tuininga 2008-09-26 21:13:36 +00:00
  • 6b1a551997 Use a cx_Oracle.Error instance rather than a string to hold the error as requested by Helge Tesdal. Anthony Tuininga 2008-09-26 04:52:47 +00:00
  • 337ae2998f Added support for proxy authentication in session pools as requested by Michal Wegrzynek (and thanks for the initial patch as well). Anthony Tuininga 2008-09-15 19:41:54 +00:00
  • 8072d8971f Added support for timestamp attributes in objects. Anthony Tuininga 2008-09-12 22:46:08 +00:00
  • 96f7decdce Merged 9i specific setup into standard setup since Oracle 8i support is no longer required; change tabs to spaces; add test for fixed char data types. Anthony Tuininga 2008-09-12 18:37:16 +00:00
  • 16d796d70e Added support for fixed char and old style varchar attribute values. Anthony Tuininga 2008-09-12 18:32:04 +00:00
  • 479e1f138e Added comments indicating that an Oracle client is required since so many people find this surprising. Anthony Tuininga 2008-09-10 20:40:00 +00:00
  • 432134ada8 The password can now be written. Anthony Tuininga 2008-09-04 22:44:41 +00:00
  • d92f88d6a9 Added documentation on exception handling as requested by Andreas Mock, who also graciously provided an initial patch. Anthony Tuininga 2008-09-03 05:11:11 +00:00
  • edf5b6dd9a No need to reset the extraLinkArgs and doing so prevents simple modification where desired as expressed by Christian Zagrodnick. Anthony Tuininga 2008-08-28 13:49:10 +00:00
  • 659da4554c Include the "cannot insert null value" in the list of errors that are treated as integrity errors as requested by Matt Boersma. Anthony Tuininga 2008-08-21 17:20:35 +00:00
  • 780423a59e As requested by Helge Tesdal, allow an output type handler to be specified at the connection and cursor levels. This handler will be called for each variable being defined with the parameters cursor, name, defaultType, size, precision and scale and expects to have a variable of the correct type returned or None to indicate that default processing should take place. Anthony Tuininga 2008-08-05 03:32:19 +00:00
  • 64eeeabda7 Set end of line style on all files to native to ensure that they behave properly on all platforms. Anthony Tuininga 2008-07-27 01:12:48 +00:00
  • 58c10b68ae Inital cut of support for DRCP and events mode as requested by Christopher Jones. Anthony Tuininga 2008-07-06 05:08:01 +00:00
  • 93490d971d Removed support for Oracle 8i since Oracle support for it was dropped long ago and adding support for Oracle 11g features would be very difficult while attempting to retain Oracle 8i support. Anthony Tuininga 2008-06-28 04:44:04 +00:00
  • a77bc411c6 Added proper detection for the instant client on Mac OS X as recommended by Martijn Pieters. Anthony Tuininga 2008-06-27 13:51:56 +00:00
  • d95d16db5f Ignore the cx_Oracle.egg-info directory that gets created by setuptools. Anthony Tuininga 2008-06-11 03:53:07 +00:00
  • c60c1fdf69 Ensure that in Python 2.3 and 2.4 the bdist_wininst command renames the target as well as in Python 2.5. Anthony Tuininga 2008-06-11 03:51:05 +00:00
  • 2c07de41fd Preparing to release 4.4. Anthony Tuininga 2008-06-06 15:31:18 +00:00
  • 6e9b4d897f Remove debugging code. Anthony Tuininga 2008-06-04 18:40:14 +00:00
  • b1c77b8456 Added support for setting CLIENT_DRIVER in V$SESSION_CONNECT_INFO in Oracle 11g and higher. Anthony Tuininga 2008-06-04 17:28:43 +00:00
  • 71d26018b7 Added preliminary history for changes for pending 4.4 release. Anthony Tuininga 2008-06-02 19:24:20 +00:00
  • d11dcba0ea Attempt to use setuptools if possible and fall back to normal distutils if setuptools is not found or installed. Anthony Tuininga 2008-05-29 13:48:14 +00:00
  • e7dcdff522 Added line to make it easier to support setup tools if desired. Anthony Tuininga 2008-05-28 20:46:00 +00:00
  • d32456f88d Fix support for packaging documentation after switching to reST format. Anthony Tuininga 2008-05-28 20:43:47 +00:00
  • 9b56028455 Set the default array size to 50 instead of 1 as the DB API suggests because the performance difference is so drastic and many people have recommended that the default be changed. Anthony Tuininga 2008-05-23 15:58:11 +00:00
  • b8b97ac65a Mark all files as text files to use native line endings; also indicate that the cursor attribute description is indeed an attribute and not a method. Anthony Tuininga 2008-05-23 14:21:11 +00:00
  • dd2cc400db Clarify that callfunc() is an extension to the DB API. Anthony Tuininga 2008-05-23 14:12:28 +00:00
  • e03f1003f3 The html directory always exists since it is checked into Subversion so there is no need to create it. Anthony Tuininga 2008-05-22 15:02:40 +00:00
  • 4ce7d7955e Transformed documentation to new format using restructured text. Thanks to Waldemar Osuch for contributing the initial draft of the new documentation. Anthony Tuininga 2008-05-22 15:00:39 +00:00
  • be449a8048 Translated some error codes to OperationalError as requested by Matthew Harriger; translated if/elseif/else logic to switch statement to make it more readable and to allow for additional translation if desired. Anthony Tuininga 2008-05-21 17:16:18 +00:00
  • 239b5a6695 Cygwin is on Windows so should be treated in the same way as noted by Matthew Cahn. Anthony Tuininga 2008-04-09 04:47:19 +00:00
  • 99abfa0e4a Add support for recognizing the Oracle instant client and building with it; modify the libraries used for locating an Oracle installation on Windows to those libraries that are commonly found in the full client as well as the instant client. Anthony Tuininga 2008-03-26 14:53:12 +00:00
  • 29a63e2688 When dropping a connection from the pool, ignore any errors that occur during the rollback; unfortunately, Oracle decides to commit data even when dropping a connection from the pool instead of rolling it back so the attempt still has to be made. Anthony Tuininga 2008-03-21 23:00:50 +00:00
  • e875f9a5ae Allow the password to be overwritten by a new value as requested by Alex VanderWoude; this value is retained as a convenience to the user and not used by anything in the module; if changed externally it may be convenient to keep this copy up to date. Anthony Tuininga 2008-03-21 22:37:17 +00:00
  • 236e494456 Defer type assignment when performing executemany() until the last possible moment if the value being bound in is null as suggested by Dragos Dociu. Anthony Tuininga 2008-03-21 22:13:51 +00:00
  • 31ad9cd9c6 Added Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS around each blocking call for LOBs as requested by Jason Conroy who also provided an initial patch and performed a number of tests that demonstrate the new code is much more responsive. Anthony Tuininga 2008-03-21 21:29:13 +00:00
  • d6a778a3cc Specify that the version of Oracle 10 that is now primarily used is 10.2, not 10.1. Anthony Tuininga 2007-11-20 15:26:21 +00:00
  • 43dcfe1ea8 Use cx_Oracle.InterfaceError rather than the builtin RuntimeError as requested by Luke Mewburn since the error is specific to Oracle and someone attempting to catch any exception cannot simply use cx_Oracle.Error. Anthony Tuininga 2007-10-31 13:38:51 +00:00
  • 09d5ba4c25 Add support for acquiring cursor.description after a parse. Anthony Tuininga 2007-10-24 20:52:29 +00:00
  • 1cea81e08d Use the shared library libclntsh.so to determine which Oracle version is in use rather than the static client libraries which are not shipped with Oracle XE or the instant client; thanks to Catherine Devlin for pointing this out and providing an initial patch. In addition, allow for the situation where the instant client is installed as Linux RPMs which use different locations than the standard client in that situation. Anthony Tuininga 2007-10-13 03:01:33 +00:00
  • 1d057bcd5f Remove duplicate keyword argument. Anthony Tuininga 2007-10-02 22:40:45 +00:00
  • 6d1d519584 Add all metadata into the setup configuration script. Anthony Tuininga 2007-10-02 04:03:32 +00:00
  • 76c10a9e73 Include the samples directory in the source distribution. Anthony Tuininga 2007-10-02 03:46:13 +00:00
  • e2ea889ff9 Ensure these files have native line endings on all platforms. Anthony Tuininga 2007-10-02 02:58:33 +00:00
  • a9aa846872 Translated tabs into spaces. Anthony Tuininga 2007-10-02 02:53:06 +00:00
  • ed13b8314d Tweaked documentation in preparation for release of version 4.3.3. Anthony Tuininga 2007-10-02 02:50:53 +00:00
  • ea89e39983 Added a comment indicating where to find additional examples. Anthony Tuininga 2007-10-01 22:46:53 +00:00
  • 4ab1a9e2e9 Added some samples for more advanced techniques. Anthony Tuininga 2007-10-01 20:33:54 +00:00
  • 2ecf97230d Added support for starting up and shutting down the database using the new methods available in Oracle 10g Release 2 and higher. Anthony Tuininga 2007-10-01 19:47:24 +00:00
  • 8c93273f5e Added support for determining the version of the client library being used, available in Oracle 10g Release 2 and higher. Anthony Tuininga 2007-09-30 04:51:44 +00:00
  • 3eb4d33c54 Added support for connection.ping() which can be used to test whether or not a connection is still active or not. Anthony Tuininga 2007-09-30 02:19:03 +00:00
  • fd613fce73 Prevent error "ORA-24333: zero iteration count" from taking place as requested by Andreas Mock. Anthony Tuininga 2007-09-29 22:36:06 +00:00
  • 3033c3d554 Tweak the building of RPM packages in order to include the Oracle version and Python version in the name. Anthony Tuininga 2007-09-29 22:07:26 +00:00
  • 87df7241c8 The bdist_msi command is only available in Python 2.5 and up. Anthony Tuininga 2007-09-24 18:35:20 +00:00
  • 183826cf6f Use qualified wildcards as otherwise Windows includes files from the .svn directories, for example. Also remove dependency on existing MANIFEST file in the setup script. Anthony Tuininga 2007-09-21 13:43:19 +00:00
  • 5db2c08ce5 Ignore the MANIFEST file now that it is being generated. Anthony Tuininga 2007-09-21 03:35:07 +00:00
  • 75a3145577 Use a MANIFEST template rather than a hard coded MANIFEST. Anthony Tuininga 2007-09-21 03:33:48 +00:00
  • 7dc371db7a Rearrange code in order to make the dependent projects build easier. Anthony Tuininga 2007-09-15 23:56:24 +00:00
  • 510b66a21a Make the search for the lib32 and lib64 directories automatic for all platforms. Anthony Tuininga 2007-09-13 04:42:14 +00:00
  • 0f5f55d2e6 Only include bdist_wininst and bdist_msi on Windows. Anthony Tuininga 2007-09-13 04:40:26 +00:00
  • 2ea38919cf Add global statements simply to make running the setup script within another setup script (cx_OracleDBATools) happy. Anthony Tuininga 2007-09-11 16:41:35 +00:00
  • 562359d339 Tweak setup.py to create a directory containing the Oracle version in addition to the Python version since they are quite different. Anthony Tuininga 2007-09-10 22:40:21 +00:00
  • ce903c8f6f Ignore the dist directory as well. Anthony Tuininga 2007-09-10 21:45:12 +00:00
  • e494242164 Setup.cfg is no longer being used. Anthony Tuininga 2007-09-05 04:53:49 +00:00
  • dd3088cf8a Put the options directly in the setup.py rather than in setup.cfg. Anthony Tuininga 2007-09-05 04:53:12 +00:00
  • e0d607ce77 Remove unnecessary dependency on win32api since the gcc compiler is perfectly capable of linking against DLLs directly. Anthony Tuininga 2007-08-22 19:54:19 +00:00
  • f5255a1f0d Use depends directive to indicate which source files the module depends upon (but does not compile directly). Anthony Tuininga 2007-08-14 17:34:33 +00:00
  • 929ca8565d Use SourceForge to host now instead of the starship since it is no longer actively administered. Anthony Tuininga 2007-08-03 04:23:46 +00:00
  • 203d04c204 Use the SourceForge web site now since the Starship site appears to be no longer actively maintained. Anthony Tuininga 2007-07-29 05:06:22 +00:00
  • a86b0a2cba Ensure that the copyright notices are on different lines. Anthony Tuininga 2007-07-28 22:38:53 +00:00
  • 5686a23617 Preparing to release version 4.3.2. Anthony Tuininga 2007-07-28 22:05:10 +00:00
  • ada25ae931 Copyright is now Colt Engineering but leave old copyright notice in as well. Anthony Tuininga 2007-07-28 21:59:05 +00:00
  • e0972e62ae Updated the documentation to include the changes made with respect to the statement cache and preparing statements. Anthony Tuininga 2007-07-28 20:37:00 +00:00
  • 2b30ecde28 Added support for connection.stmtcachesize which allows for both reading and writing the size of the statement cache size. This parameter can make a huge difference with the length of time taken to prepare statements. Added support for setting the statement tag when preparing a statement. Both of these were requested by Bjorn Sandberg who also provided an initial patch. Cleaned up some error context strings as well. Anthony Tuininga 2007-07-28 05:26:57 +00:00
  • 39c33faea4 Added support for autocommit mode as requested by Ian Kelly. Anthony Tuininga 2007-07-11 04:10:39 +00:00
  • 686efca6a9 Free the row factory when the cursor is being freed; clear the row factory when a new statement is prepared since it is very likely that the new statement will not be compatible with the old and having to clear it manually each time would be rather tedious. Anthony Tuininga 2007-07-04 17:26:21 +00:00
  • eb18c5d52d Added attribute cursor.rowfactory which allows a method to be called for each row that would be returned; this is about 20% faster than calling the method in Python instead using the idiom [method(*r) for r in cursor]. Anthony Tuininga 2007-07-04 16:57:36 +00:00