Initial revision


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@2 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
remove accidentally left C++-style comment


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@7 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
informixdb.Error now exposes the components of the error message--most
importantly sqlcode--as attributes.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@8 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Wrap ifxdbcurs C object into a python object. This allows adding methods to
cursor objects without having to mess around with the C code.
Add iterator protocol to cursor object.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@9 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
implement arraysize attribute and executemany method for cursor objects


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@10 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
- properly initialize sqlerrd
- read sqlerrd after PREPARE and OPEN
- implement rowcount


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@11 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
- implement rowcount
- use recommended keyword arguments for connect()


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@12 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
prepare for 1.5 release


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@13 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
ifxdbRollback() didn't return a value when transactions are disabled.
Patch by Daniel Smertnig.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@14 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Correct reading from lvarchar columns. Fixes bug #1297682. If I had known
it was gonna be this easy, I wouldn't even have filed a bug report ;)


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@15 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Use byleng() to figure out clipped string length in doCopy()


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@16 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Apply consistent indentation. Patch from Daniel Smertnig.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@17 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
implement executemany on the ESQL/C layer and optimize the insert case
by using an insert cursor if possible. Closes feature request #1296498.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@18 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Insert cursor logic didn't cooperate with statement caching. Fixed.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@19 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Bugfix: Since Python 1.6, parameter binding of long ints chopped off the last
digit in a blind attempt at removing the 'L' suffix.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@20 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Include NUL terminator to eliminate error -766 on ANSI databases.


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@21 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
Major steps towards a DB-API 2.0 compliant release:

* should be compliant with DB-API 2.0 spec (PEP-249)
* DB-API extension: fetchXXX() can optionally return dicts instead of tuples
* DB-API extension: named cursors
* DB-API extension: Cursor.connection
* DB-API extension: Cursor.messages / Cursor.errorhandler
* DB-API extension: Cursor iterators
* DB-API extension: Exceptions as Connection attributes
* testsuite in tests/:
  - slightly adapted "Python DB API 2.0 Anal Compliance Unit Test" 1.10 from
    http://zen.freezope.org/Software/DBAPI20TestSuite/
  - additional module specific tests
  - run with 'python testdbapi.py' in tests/
* setup.py: automatically install datetime.py (on which we depend) if no
  'datetime' module is available. This is for Python <2.3 only.
  (from: http://cvs.sourceforge.net/viewcvs.py/python/python/nondist/sandbox/datetime/)
* usage of new-style classes
* export `Connection` and `Cursor` type objects (useful for documentation
  utilities)
* raise an InterfaceError when too many parameters are passed to execute()
* allow stored procedures to be called via callproc() or with
  execute("EXECUTE PROCEDURE ...")
* fixed compiler warnings (gcc 4.0)
* removed option to enable erroneous NULL-value handling
* cleaned up unused preprocessor defines
* removed strange AIX workaround for unused mktime() and time.h include
* started writing docstrings / experimenting with doc-generation
* removed dbi-stuff (not present in 2.0 anymore)


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@23 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
made existing docstrings work nicely with epydoc + docutils;
added docstrings for exception classes


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@24 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
call esql from setup.py, so that we don't need autoconf / configure anymore
esql build options can now be specified for the build_ext target, e.g.:

python setup.py build_ext --esql-threadlib=posix --esql-static --esql-informixdir=/opt/informix build


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@25 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a
fixed minor glitch with 'esql-static' argument,
removed dead code


git-svn-id: svn://svn.code.sf.net/p/informixdb/code/trunk/informixdb@26 5f02b416-1a33-0410-9eb3-9ce8caf4cd5a