Commits

Author Commit Message Labels Comments Date
adamv
adamv
adamv
- Removed "nativetypes" branch. If you use the patches in Django #7560, you can comment out / set to "false" the "enable_django_hacks" property in base.py.
adamv
- Still more minor code cleanups, like tabs to spaces and line lengths and other boring stuff. - Made the DBAPI layer slightly more compatible. - Added public domain dbapi20.py test script and harness to test compliance.
adamv
Re-fix our issue 17, for Django w/ revision [7901] or later. (Removed the OFFET 0 workaround from our code.)
adamv
adamv
Cleanups in function names, etc.
adamv
New fix for issue 17 / Django 7885: * The Django patch causes extraneous "OFFSET 0" at the end of non-sliced queries, so we're accounting for this (by ignoring it.) * Need to make sure NOT to invoke the LIMIT/OFFSET support unless we really need it (because we don't want to rewrite to use row_number() unnecessarily.)
adamv
Fix for issue 17, limit/offset changes in Django 7888.
adamv
Minor formatting changes.
adamv
(Converted some tabs to spaces.)
adamv
* Cleaned up error handling in _executeHelper somewhat. * Grouped ado_to_python, python_to_ado and DBAPI factories.
adamv
Removed some more logging code and tightened up docstrings; the DB-API docs should be consulted instead of relying on this module to replicate them.
adamv
Removed inconsistent and gross debug logging code from dbapi. (I'll consider adding something better back in if there are any requests.)
adamv
adamv
* Renamed "adodb_django" to "dbapi". This module is OK for direct use outside of django, and only depends on Django for a decimal type if you're on Python 2.3 * Added a samples folder, with an example of using the module without Django.
adamv
adamv
Iterate recordset.Fields directly.
adamv
Removed a now unused function, started simplifying some variable names (c instead of conn) and clarifying others (connection_string instead of connstr)
adamv
Mostly style changes and code simplifications.
adamv
Changed code that maps Python types to ADO types: "str" and "unicode" are no longer in the Python-to-ADO type map, we do an "isinstance(data, basestring)" instead, and fall back to the type map for non-string types. Strings retrieved as part of a custom tag are actually SafeUnicode instances, though they still derive from basestring.
adamv
Fix for issue 16.
adamv
Fixed off-by-one error in limit/offset
adamv
- Removing CursorWrapper, since all SQL munging now happens in the custom query class. - runsql.cmd now lets you pick which SQL Server instance to run against.
adamv
Now synthesizing an ordering (the meta primary key) if there is a limit/offset but no order.
adamv
Partial implementation of LIMIT / OFFSET. Requires an "order by" clause.
adamv
Introspection now detects IDENTITY columns and maps them to AutoField.
adamv
folder src -> source
adamv
Trying to limit "INSERT_IDENTITY" settings to insert queries where the PK is being set AND it is an AutoField.
adamv
Backing out IDENTITY_INSERT support again. SQL Server only needs this set if you are inserting into an actual IDENTITY column (which one of my schemas uses.) No Django provided models use this kind of field, and it really doesn't work when the primary key is a string anyway (as for the session table.)
  1. Prev
  2. Next