Mike Bayer [Sat, 27 Oct 2007 18:45:20 +0000 (18:45 +0000)]
- inlined a couple of context variables
- PG two phase was calling text() without the correct bind param format, previous compiler checkin revealed issue
Mike Bayer [Sat, 27 Oct 2007 17:41:30 +0000 (17:41 +0000)]
- removed regular expression step from most statement compilations.
also fixes [ticket:833]
- inlining on PG with_returning() call
- extra options added for profiling
Mike Bayer [Thu, 25 Oct 2007 16:57:04 +0000 (16:57 +0000)]
- refactored _compile_properties/_compile_property, removed redundant code.
still a little squirrely but much less complex.
- improved behavior of add_property() etc., fixed [ticket:831] involving
synonym/deferred
Mike Bayer [Sun, 21 Oct 2007 16:36:34 +0000 (16:36 +0000)]
- the whole OperationContext/QueryContext/SelectionContext thing greatly scaled back;
all MapperOptions process the Query and that's it, one very simpliied QueryContext object gets passed
around at query.compile() and query.instances() time
- slight optimization to MapperExtension allowing the mapper to check for the presence of an extended method, takes 3000 calls off of masseagerload.py test (only a slight increase in speed though)
- attempting to centralize the notion of a "path" along mappers/properties, need to define what that is better. heading towards [ticket:777]...
Jason Kirtland [Sat, 20 Oct 2007 17:14:46 +0000 (17:14 +0000)]
Excluding older sqlite versions from the new insert tests. Currently conservative- 2.8 definitely fails, 3.3 works. The 3.0 and 3.1 binaries from sqlite.org segfault for me so the version check should be revisited when possible.
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)