Mike Bayer [Wed, 17 Oct 2007 16:49:15 +0000 (16:49 +0000)]
- removed __len__ from "dynamic" collection as it would require issuing
a SQL "count()" operation, thus forcing all list evaluations to issue
redundant SQL [ticket:818]
Mike Bayer [Tue, 16 Oct 2007 16:03:59 +0000 (16:03 +0000)]
- Fixed SQL compiler's awareness of top-level column labels as used
in result-set processing; nested selects which contain the same column
names don't affect the result or conflict with result-column metadata.
- query.get() and related functions (like many-to-one lazyloading)
use compile-time-aliased bind parameter names, to prevent
name conflicts with bind parameters that already exist in the
mapped selectable.
Mike Bayer [Sun, 14 Oct 2007 19:15:09 +0000 (19:15 +0000)]
- PG reflection, upon seeing the default schema name being used explicitly
as the "schema" argument in a Table, will assume that this is the the
user's desired convention, and will explicitly set the "schema" argument
in foreign-key-related reflected tables, thus making them match only
with Table constructors that also use the explicit "schema" argument
(even though its the default schema).
In other words, SA assumes the user is being consistent in this usage.
Mike Bayer [Sun, 14 Oct 2007 16:56:32 +0000 (16:56 +0000)]
- attempted to add a test for #622 / #751, but cant reproduce the failing condition
- fixed major oracle bug introduced by r3561, since colnames come back as unicode now,
need to encode keys in setinputsizes() step
Roger Demetrescu [Fri, 12 Oct 2007 12:53:33 +0000 (12:53 +0000)]
firebird: Fixed reflection for Integer and Numeric (after introducing Float column type). Need to review 'column_func' from reflecttable() and write some unit tests...
Roger Demetrescu [Fri, 12 Oct 2007 06:02:15 +0000 (06:02 +0000)]
Firebird: added Float and Time types (FBFloat and FBTime). Fixed BLOB SUB_TYPE for TEXT and Binary types.
Firebird's string types are tested in testtypes.py
Ants Aasma [Mon, 8 Oct 2007 15:25:51 +0000 (15:25 +0000)]
- fix multiple consequent two phase transactions not working with postgres. For some reason implicit transactions are not enough. [ticket:810]
- add an option to scoped session mapper extension to not automatically save new objects to session.
Jason Kirtland [Mon, 8 Oct 2007 03:01:04 +0000 (03:01 +0000)]
- Loosened up test_cant_execute_join for oracle (probably) + bonus typo fix
- Some docstring formatting waiting for pg to finish the tests... waiting...
Jason Kirtland [Sun, 7 Oct 2007 18:54:05 +0000 (18:54 +0000)]
- Rewrote autoincrement tests: added new scenarios, changed the orm fetchid to explicit test of last_row_ids(), and now testing transactional/autocommit modes separately to help catch any subtle issues that may exist due to assumed cursor state during post_exec().
Mike Bayer [Sat, 6 Oct 2007 16:12:58 +0000 (16:12 +0000)]
- oracle does not implicitly convert to unicode for non-typed result
sets (i.e. when no TypeEngine/String/Unicode type is even being used;
previously it was detecting DBAPI types and converting regardless).
should fix [ticket:800]
- fixed oracle out_parameters, likely broke in beta6
- fixed oracle _normalize_case for encoded names, gets unicode reflection test to work
- a few extra tests tweaked/unsupported for oracle
Mike Bayer [Sat, 6 Oct 2007 01:12:19 +0000 (01:12 +0000)]
- null foreign key on a m2o doesn't trigger a lazyload [ticket:803]
- slight simpliication to mapper.populate_instance()
- lamenting the different codepaths between query._get() and DeferredLoader.lazyload()
- query._get() uses all()[0] for single-row load to avoid complexity of first() (same as LazyLoader)
Jason Kirtland [Thu, 4 Oct 2007 18:31:31 +0000 (18:31 +0000)]
Adjusted reserved word reflection test for oracle-style identifier dialects. But probably the CheckConstraint part of this test should just be removed, as it's testing a non-extant feature.
Mike Bayer [Thu, 4 Oct 2007 03:19:38 +0000 (03:19 +0000)]
- move PG RETURNING tests to postgres dialect test
- added server_version_info() support for PG dialect
- exclude PG versions < 8.4 for RETURNING tests
Mike Bayer [Fri, 28 Sep 2007 16:37:52 +0000 (16:37 +0000)]
- doc updates. generated sql docs are against sql.expression now.
- added SessionExtension docs.
- removed old sqlconstruction doc.
- changed 'copy_collections' flag in Select to '_copy_collections'; its
not really "public".