]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
17 years agomaintain the ordering of the given collection of columns when reducing so that primar...
Mike Bayer [Tue, 15 Jan 2008 18:33:30 +0000 (18:33 +0000)] 
maintain the ordering of the given collection of columns when reducing so that primary key collections remain
ordered the same as in the mapped table

17 years agoavoid unnecessary mapper.extension copy
Mike Bayer [Tue, 15 Jan 2008 18:21:13 +0000 (18:21 +0000)] 
avoid unnecessary mapper.extension copy

17 years agofinally, a really straightforward reduce() method which reduces cols
Mike Bayer [Tue, 15 Jan 2008 17:59:27 +0000 (17:59 +0000)] 
finally, a really straightforward reduce() method which reduces cols
to the minimal set for every test case I can come up with, and
now replaces all the cruft in Mapper._compile_pks() as well as
Join.__init_primary_key().  mappers can now handle aliased selects
and figure out the correct PKs pretty well [ticket:933]

17 years ago- select_table mapper turns straight join into aliased select + custom PK, to allow
Mike Bayer [Tue, 15 Jan 2008 02:34:17 +0000 (02:34 +0000)] 
- select_table mapper turns straight join into aliased select + custom PK, to allow
joins onto select_table mappers
- starting a generalized reduce_columns func

17 years agoadded more (failing) tests to query, will need to fix [ticket:932] [ticket:933]
Mike Bayer [Mon, 14 Jan 2008 18:50:10 +0000 (18:50 +0000)] 
added more (failing) tests to query, will need to fix [ticket:932] [ticket:933]

17 years ago- query.join() can now accept class-mapped attributes
Mike Bayer [Mon, 14 Jan 2008 04:20:26 +0000 (04:20 +0000)] 
- query.join() can now accept class-mapped attributes
as arguments, which can be used in place or in any
combination with strings.  In particular this allows
construction of joins to subclasses on a polymorphic
relation, i.e.
query(Company).join(['employees', Engineer.name]),
etc.

17 years ago- applying some refined versions of the ideas in the smarter_polymorphic
Mike Bayer [Mon, 14 Jan 2008 02:45:30 +0000 (02:45 +0000)] 
- applying some refined versions of the ideas in the smarter_polymorphic
branch
- slowly moving Query towards a central "aliasing" paradigm which merges
the aliasing of polymorphic mappers to aliasing against arbitrary select_from(),
to the eventual goal of polymorphic mappers which can also eagerload other
relations
- supports many more join() scenarios involving polymorphic mappers in
most configurations
- PropertyAliasedClauses doesn't need "path", EagerLoader doesn't need to
guess about "towrap"

17 years ago- _get_equivalents() converted into a lazy-initializing property; Query was calling it
Mike Bayer [Sun, 13 Jan 2008 19:04:55 +0000 (19:04 +0000)] 
- _get_equivalents() converted into a lazy-initializing property; Query was calling it
for polymorphic loads which is really expensive
- surrogate_mapper adapts the given order_by, so that order_by can be against the mapped
table and is usable for sub-mappers as well.  Query properly calls select_mapper.order_by.

17 years ago- testbase is gone, replaced by testenv
Jason Kirtland [Sat, 12 Jan 2008 22:03:42 +0000 (22:03 +0000)] 
- testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts

17 years ago- Undeclared SAWarnings are now fatal to tests as well.
Jason Kirtland [Sat, 12 Jan 2008 04:52:05 +0000 (04:52 +0000)] 
- Undeclared SAWarnings are now fatal to tests as well.
- Fixed typo that was killing runs of individual named tests.

17 years agofixed NOT ILIKE
Mike Bayer [Fri, 11 Jan 2008 21:30:02 +0000 (21:30 +0000)] 
fixed NOT ILIKE

17 years ago- added "ilike()" operator to column operations.
Mike Bayer [Fri, 11 Jan 2008 21:24:01 +0000 (21:24 +0000)] 
- added "ilike()" operator to column operations.
compiles to ILIKE on postgres, lower(x) LIKE lower(y)
on all others [ticket:727]

17 years agoReverted to False Firebird's supports_sane_rowcount
Lele Gaifax [Fri, 11 Jan 2008 15:31:15 +0000 (15:31 +0000)] 
Reverted to False Firebird's supports_sane_rowcount
Slipped in: even if it seems it could be set to True, I'm still testing the rowcount affair

17 years agoTry to reflect also the Sequence on the PK under Firebird
Lele Gaifax [Fri, 11 Jan 2008 15:27:02 +0000 (15:27 +0000)] 
Try to reflect also the Sequence on the PK under Firebird

17 years ago- Warnings are now issued as SAWarning instead of RuntimeWarning; util.warn() wraps...
Jason Kirtland [Fri, 11 Jan 2008 01:28:43 +0000 (01:28 +0000)] 
- Warnings are now issued as SAWarning instead of RuntimeWarning; util.warn() wraps this up.
- SADeprecationWarning has moved to exceptions. An alias remains in logging until 0.5.

17 years agoInclude column name in length-less String warning (more [ticket:912])
Jason Kirtland [Thu, 10 Jan 2008 23:16:56 +0000 (23:16 +0000)] 
Include column name in length-less String warning (more [ticket:912])

17 years ago- unit test for r4048
Mike Bayer [Thu, 10 Jan 2008 22:45:07 +0000 (22:45 +0000)] 
- unit test for r4048

17 years ago- added a mapper() flag "eager_defaults"; when set to
Mike Bayer [Thu, 10 Jan 2008 22:32:51 +0000 (22:32 +0000)] 
- added a mapper() flag "eager_defaults"; when set to
True, defaults that are generated during an INSERT
or UPDATE operation are post-fetched immediately,
instead of being deferred until later.  This mimics
the old 0.3 behavior.

17 years ago- added extra fk override test
Mike Bayer [Thu, 10 Jan 2008 18:05:20 +0000 (18:05 +0000)] 
- added extra fk override test
- proper error message is raised when trying to
access expired instance attributes with no session
present

17 years agoRecognize another Firebird exception in dialect.is_disconnect()
Lele Gaifax [Thu, 10 Jan 2008 17:40:38 +0000 (17:40 +0000)] 
Recognize another Firebird exception in dialect.is_disconnect()

17 years ago- finally added PGMacAddr type to postgres
Mike Bayer [Thu, 10 Jan 2008 15:24:14 +0000 (15:24 +0000)] 
- finally added PGMacAddr type to postgres
[ticket:580]

17 years agoconverted tests to use remote_side and foreign_keys. but...wow these are hard tests..
Mike Bayer [Thu, 10 Jan 2008 06:51:51 +0000 (06:51 +0000)] 
converted tests to use remote_side and foreign_keys.  but...wow these are hard tests..

17 years agoReworked r4042- undeclared deprecation warnings are now *fatal* to tests. No surprises.
Jason Kirtland [Thu, 10 Jan 2008 02:37:39 +0000 (02:37 +0000)] 
Reworked r4042- undeclared deprecation warnings are now *fatal* to tests.  No surprises.

17 years agotest suite deprecation rampage
Jason Kirtland [Wed, 9 Jan 2008 22:54:51 +0000 (22:54 +0000)] 
test suite deprecation rampage

17 years agobump.
Jason Kirtland [Wed, 9 Jan 2008 22:53:33 +0000 (22:53 +0000)] 
bump.

17 years agoformatting, added UnicodeText rel_0_4_2p3
Mike Bayer [Wed, 9 Jan 2008 21:37:42 +0000 (21:37 +0000)] 
formatting, added UnicodeText

17 years agoSilenced deprecation warnings when testing deprecated extensions...
Jason Kirtland [Wed, 9 Jan 2008 20:41:14 +0000 (20:41 +0000)] 
Silenced deprecation warnings when testing deprecated extensions...

17 years agoAdded explicit length to more testing String columns.
Jason Kirtland [Wed, 9 Jan 2008 20:29:04 +0000 (20:29 +0000)] 
Added explicit length to more testing String columns.

17 years agore-bump
Jason Kirtland [Wed, 9 Jan 2008 20:23:53 +0000 (20:23 +0000)] 
re-bump

17 years agoAdded UnicodeText alias
Jason Kirtland [Wed, 9 Jan 2008 20:22:41 +0000 (20:22 +0000)] 
Added UnicodeText alias

17 years ago- fixed bug with session.dirty when using "mutable scalars"
Mike Bayer [Wed, 9 Jan 2008 18:52:35 +0000 (18:52 +0000)] 
- fixed bug with session.dirty when using "mutable scalars"
(such as PickleTypes)

- added a more descriptive error message when flushing on a
relation() that has non-locally-mapped columns in its primary or
secondary join condition

17 years agoredid the _for_ddl String/Text deprecation warning correctly [ticket:912]
Mike Bayer [Wed, 9 Jan 2008 18:09:49 +0000 (18:09 +0000)] 
redid the _for_ddl String/Text deprecation warning correctly [ticket:912]

17 years ago- fixed bug in union() so that select() statements which don't derive
Mike Bayer [Tue, 8 Jan 2008 21:53:37 +0000 (21:53 +0000)] 
- fixed bug in union() so that select() statements which don't derive
from FromClause objects can be unioned

17 years ago- Text type is properly exported now and does not raise a warning
Mike Bayer [Tue, 8 Jan 2008 08:55:18 +0000 (08:55 +0000)] 
- Text type is properly exported now and does not raise a warning
on DDL create

17 years agoFixed reflection of mysql empty string column defaults.
Jason Kirtland [Tue, 8 Jan 2008 07:46:37 +0000 (07:46 +0000)] 
Fixed reflection of mysql empty string column defaults.

17 years agobump
Mike Bayer [Mon, 7 Jan 2008 20:13:29 +0000 (20:13 +0000)] 
bump

17 years agologged [ticket:923] fix rel_0_4_2b
Mike Bayer [Mon, 7 Jan 2008 19:59:23 +0000 (19:59 +0000)] 
logged [ticket:923] fix

17 years agoFix for ticket [923]
Rick Morrison [Mon, 7 Jan 2008 19:33:29 +0000 (19:33 +0000)] 
Fix for ticket [923]

17 years ago- fixed an attribute history bug whereby assigning a new collection
Mike Bayer [Mon, 7 Jan 2008 18:52:02 +0000 (18:52 +0000)] 
- fixed an attribute history bug whereby assigning a new collection
to a collection-based attribute which already had pending changes
would generate incorrect history [ticket:922]

- fixed delete-orphan cascade bug whereby setting the same
object twice to a scalar attribute could log it as an orphan
[ticket:925]
- generative select.order_by(None) / group_by(None) was not managing to
reset order by/group by criterion, fixed [ticket:924]

17 years ago- suppressing *all* errors in InstanceState.__cleanup() now.
Mike Bayer [Sun, 6 Jan 2008 20:41:48 +0000 (20:41 +0000)] 
- suppressing *all* errors in InstanceState.__cleanup() now.

17 years ago- fixed bug which could occur with polymorphic "union" mapper
Mike Bayer [Sun, 6 Jan 2008 20:32:45 +0000 (20:32 +0000)] 
- fixed bug which could occur with polymorphic "union" mapper
which falls back to "deferred" loading of inheriting tables

- the "columns" collection on a mapper/mapped class (i.e. 'c')
is against the mapped table, not the select_table in the
case of polymorphic "union" loading (this shouldn't be
noticeable)

17 years ago- synonyms can now be created against props that don't exist yet,
Mike Bayer [Sat, 5 Jan 2008 23:27:02 +0000 (23:27 +0000)] 
- synonyms can now be created against props that don't exist yet,
which are later added via add_property().  This commonly includes
backrefs. (i.e. you can make synonyms for backrefs without
worrying about the order of operations) [ticket:919]

17 years ago- changed name of TEXT to Text since its a "generic" type; TEXT name is
Mike Bayer [Sat, 5 Jan 2008 22:59:18 +0000 (22:59 +0000)] 
- changed name of TEXT to Text since its a "generic" type; TEXT name is
deprecated until 0.5.  The "upgrading" behavior of String to Text
when no length is present is also deprecated until 0.5; will issue a
warning when used for CREATE TABLE statements (String with no length
for SQL expression purposes is still fine) [ticket:912]

17 years agoAdded 'function_call_count' assertion decorator. The full-suite vs. isolated run...
Jason Kirtland [Sat, 5 Jan 2008 21:56:22 +0000 (21:56 +0000)] 
Added 'function_call_count' assertion decorator.  The full-suite vs. isolated run call count discrepancy needs to be ironed out before this can be applied to zoomark.

17 years agoUpdates
Jason Kirtland [Sat, 5 Jan 2008 21:46:08 +0000 (21:46 +0000)] 
Updates

17 years agoAdded lots o' info.
Jason Kirtland [Sat, 5 Jan 2008 20:50:10 +0000 (20:50 +0000)] 
Added lots o' info.

17 years agoMore overloads: fix cascades for += on a list relation, added operator support to...
Jason Kirtland [Sat, 5 Jan 2008 19:11:58 +0000 (19:11 +0000)] 
More overloads: fix cascades for += on a list relation, added operator support to association proxied lists.

17 years agobump.
Jason Kirtland [Sat, 5 Jan 2008 18:42:46 +0000 (18:42 +0000)] 
bump.

17 years agocalling this 0.4.2a rel_0_4_2a
Mike Bayer [Sat, 5 Jan 2008 18:27:12 +0000 (18:27 +0000)] 
calling this 0.4.2a

17 years ago- fixed fairly critical bug whereby the same instance could be listed
Mike Bayer [Sat, 5 Jan 2008 18:26:28 +0000 (18:26 +0000)] 
- fixed fairly critical bug whereby the same instance could be listed
more than once in the unitofwork.new collection; most typically
reproduced when using a combination of inheriting mappers and
ScopedSession.mapper, as the multiple __init__ calls per instance
could save() the object with distinct _state objects

17 years agoExperimental: modestly more informative repr() for some expressions (using .description)
Jason Kirtland [Sat, 5 Jan 2008 00:37:08 +0000 (00:37 +0000)] 
Experimental: modestly more informative repr() for some expressions (using .description)

17 years agoMigrated a few in-function 'from x import y' to the 'global x; if x is None' style.
Jason Kirtland [Sat, 5 Jan 2008 00:25:57 +0000 (00:25 +0000)] 
Migrated a few in-function 'from x import y' to the 'global x; if x is None' style.

17 years agoRefined bulk-assignment aspects of the r3999 in-place collection operator fix. Also...
Jason Kirtland [Fri, 4 Jan 2008 20:40:22 +0000 (20:40 +0000)] 
Refined bulk-assignment aspects of the r3999 in-place collection operator fix. Also? r4000!

17 years agoFixed in-place set mutation operator support [ticket:920]
Jason Kirtland [Fri, 4 Jan 2008 20:17:42 +0000 (20:17 +0000)] 
Fixed in-place set mutation operator support [ticket:920]

17 years agoAdded REPLACE statements to mysql autocommit list.
Jason Kirtland [Fri, 4 Jan 2008 19:10:18 +0000 (19:10 +0000)] 
Added REPLACE statements to mysql autocommit list.

17 years agofunc unittest fix
Mike Bayer [Fri, 4 Jan 2008 03:13:20 +0000 (03:13 +0000)] 
func unittest fix

17 years agofix select tests for labeled functions
Mike Bayer [Fri, 4 Jan 2008 03:09:17 +0000 (03:09 +0000)] 
fix select tests for labeled functions

17 years agoadd anonymous labels to function calls
Mike Bayer [Fri, 4 Jan 2008 01:00:42 +0000 (01:00 +0000)] 
add anonymous labels to function calls

17 years agofix not calling the result processor of PGArray subtypes. (a rather embarrasing copyp...
Ants Aasma [Thu, 3 Jan 2008 23:38:55 +0000 (23:38 +0000)] 
fix not calling the result processor of PGArray subtypes. (a rather embarrasing copypaste error) [ticket:913]

17 years ago- added very rudimentary yielding iterator behavior to Query. Call
Mike Bayer [Wed, 2 Jan 2008 23:13:02 +0000 (23:13 +0000)] 
- added very rudimentary yielding iterator behavior to Query.  Call
query.yield_per(<number of rows>) and evaluate the Query in an
iterative context; every collection of N rows will be packaged up
and yielded.  Use this method with extreme caution since it does
not attempt to reconcile eagerly loaded collections across
result batch boundaries, nor will it behave nicely if the same
instance occurs in more than one batch.  This means that an eagerly
loaded collection will get cleared out if it's referenced in more than
one batch, and in all cases attributes will be overwritten on instances
that occur in more than one batch.

17 years agofix weakref issue seen on one buildbot test rel_0_4_2
Mike Bayer [Wed, 2 Jan 2008 01:34:25 +0000 (01:34 +0000)] 
fix weakref issue seen on one buildbot test

17 years ago- further fix to new TypeDecorator, so that subclasses of TypeDecorators work properly
Mike Bayer [Wed, 2 Jan 2008 01:29:38 +0000 (01:29 +0000)] 
- further fix to new TypeDecorator, so that subclasses of TypeDecorators work properly
- _handle_dbapi_exception() usage changed so that unwrapped exceptions can be rethrown with the original stack trace

17 years agohappy new year
Mike Bayer [Tue, 1 Jan 2008 17:42:17 +0000 (17:42 +0000)] 
happy new year

17 years agofix to new TypeDecorator
Mike Bayer [Tue, 1 Jan 2008 01:47:58 +0000 (01:47 +0000)] 
fix to new TypeDecorator

17 years agofix up oracle handling of LOB/string [ticket:902], slight fixes to defaults.py but we
Mike Bayer [Tue, 1 Jan 2008 00:43:24 +0000 (00:43 +0000)] 
fix up oracle handling of LOB/string [ticket:902], slight fixes to defaults.py but we
will need to fix up result-type handling some more

17 years agofilter() criterion takes mapper equivalent_columns into account when it adapts to...
Mike Bayer [Mon, 31 Dec 2007 10:23:21 +0000 (10:23 +0000)] 
filter() criterion takes mapper equivalent_columns into account when it adapts to select_table.  more to come in [ticket:917] .

17 years agoremove "is None" from boolean tests
Mike Bayer [Sat, 29 Dec 2007 20:52:50 +0000 (20:52 +0000)] 
remove "is None" from boolean tests

17 years agolimit scope of try/except
Mike Bayer [Sat, 29 Dec 2007 20:50:32 +0000 (20:50 +0000)] 
limit scope of try/except

17 years agouse long for query runid counter
Mike Bayer [Sat, 29 Dec 2007 20:46:07 +0000 (20:46 +0000)] 
use long for query runid counter

17 years ago- added is_disconnect() support for oracle
Mike Bayer [Sat, 29 Dec 2007 20:13:50 +0000 (20:13 +0000)] 
- added is_disconnect() support for oracle
- fixed _handle_dbapi_error to detect endless loops, doesn't call rollback/cursor.close
etc. in case of disconnect

17 years ago- mapped classes which extend "object" and do not provide an
Mike Bayer [Sat, 29 Dec 2007 19:20:38 +0000 (19:20 +0000)] 
- mapped classes which extend "object" and do not provide an
__init__() method will now raise TypeError if non-empty *args
or **kwargs are present at instance construction time (and are
not consumed by any extensions such as the scoped_session mapper),
consistent with the behavior of normal Python classes [ticket:908]

17 years ago- fixed Query bug when filter_by() compares a relation against None
Mike Bayer [Sat, 29 Dec 2007 18:50:46 +0000 (18:50 +0000)] 
- fixed Query bug when filter_by() compares a relation against None
[ticket:899]

17 years ago- MapperExtension.before_update() and after_update() are now called
Mike Bayer [Sat, 29 Dec 2007 18:33:27 +0000 (18:33 +0000)] 
- MapperExtension.before_update() and after_update() are now called
symmetrically; previously, an instance that had no modified column
attributes (but had a relation() modification) could be called with
before_update() but not after_update() [ticket:907]

17 years ago- fixed session.refresh() with instance that has custom entity_name
Mike Bayer [Sat, 29 Dec 2007 18:22:21 +0000 (18:22 +0000)] 
- fixed session.refresh() with instance that has custom entity_name
[ticket:914]

17 years agosome rudimentary fixes to get instance-level deferreds/lazy loads to transfer over...
Mike Bayer [Fri, 21 Dec 2007 21:55:20 +0000 (21:55 +0000)] 
some rudimentary fixes to get instance-level deferreds/lazy loads to transfer over on merge()

17 years agocruft ! who knew
Mike Bayer [Fri, 21 Dec 2007 16:58:18 +0000 (16:58 +0000)] 
cruft ! who knew

17 years agoadded assertion for expiry's current inability to detect a PK switch in the DB
Mike Bayer [Fri, 21 Dec 2007 16:44:12 +0000 (16:44 +0000)] 
added assertion for expiry's current inability to detect a PK switch in the DB

17 years ago- disabled the "populate expired/deferred attributes as we come across them" function...
Mike Bayer [Fri, 21 Dec 2007 16:20:46 +0000 (16:20 +0000)] 
- disabled the "populate expired/deferred attributes as we come across them" functionality in mapper._instance(), as its not completed, doesn't properly handle mutable scalar attributes, and has poor test coverage

17 years agomass load wont overwrite modified expired attributes
Mike Bayer [Fri, 21 Dec 2007 07:26:39 +0000 (07:26 +0000)] 
mass load wont overwrite modified expired attributes

17 years agobroke up various class-level mapper/instance fanfare into class_level_loader; load...
Mike Bayer [Fri, 21 Dec 2007 07:10:14 +0000 (07:10 +0000)] 
broke up various class-level mapper/instance fanfare into class_level_loader; load-time setup_loader just returns a loader object with no checks

17 years ago- reworked all lazy/deferred/expired callables to be
Mike Bayer [Fri, 21 Dec 2007 06:57:20 +0000 (06:57 +0000)] 
- reworked all lazy/deferred/expired callables to be
serializable class instances, added pickling tests
- cleaned up "deferred" polymorphic system so that the
mapper handles it entirely
- columns which are missing from a Query's select statement
now get automatically deferred during load.

17 years ago- inheriting mappers now inherit the MapperExtensions of their parent
Mike Bayer [Thu, 20 Dec 2007 02:37:48 +0000 (02:37 +0000)] 
- inheriting mappers now inherit the MapperExtensions of their parent
mapper directly, so that all methods for a particular MapperExtension
are called for subclasses as well.  As always, any MapperExtension
can return either EXT_CONTINUE to continue extension processing
or EXT_STOP to stop processing.  The order of mapper resolution is:
<extensions declared on the classes mapper> <extensions declared on the
classes' parent mapper> <globally declared extensions>.

Note that if you instantiate the same extension class separately
and then apply it individually for two mappers in the same inheritance
chain, the extension will be applied twice to the inheriting class,
and each method will be called twice.

To apply a mapper extension explicitly to each inheriting class but
have each method called only once per operation, use the same
instance of the extension for both mappers.
[ticket:490]

17 years ago- sqlite SLDate type will not erroneously render "microseconds" portion
Mike Bayer [Thu, 20 Dec 2007 01:45:36 +0000 (01:45 +0000)] 
- sqlite SLDate type will not erroneously render "microseconds" portion
of a datetime or time object when sent to the DB.

17 years agoforgot CHANGES
Rick Morrison [Wed, 19 Dec 2007 23:15:25 +0000 (23:15 +0000)] 
forgot CHANGES

17 years agoFix for autoload of non-identity PK integer columns [824]
Rick Morrison [Wed, 19 Dec 2007 23:04:43 +0000 (23:04 +0000)] 
Fix for autoload of non-identity PK integer columns [824]
Better datetime checking/conversion for pyodbc adodbapi [842]
Fix for autoloading schema-qualified tables [901]
Convert_unicode support for all dialects [839]

17 years ago- Re-raise SystemExit et al in _ConnectionRecord.close
Jason Kirtland [Wed, 19 Dec 2007 20:36:37 +0000 (20:36 +0000)] 
- Re-raise SystemExit et al in _ConnectionRecord.close
- Little code cleanup- decreased verbosity of string formatting.

17 years ago- auto-reconnect support improved; a Connection can now automatically
Mike Bayer [Wed, 19 Dec 2007 19:51:46 +0000 (19:51 +0000)] 
- auto-reconnect support improved; a Connection can now automatically
reconnect after its underlying connection is invalidated, without
needing to connect() again from the engine.  This allows an ORM session
bound to a single Connection to not need a reconnect.
Open transactions on the Connection must be rolled back after an invalidation
of the underlying connection else an error is raised.  Also fixed
bug where disconnect detect was not being called for cursor(), rollback(),
or commit().

17 years agoFix the unpacking of the refered table name under Firebird
Lele Gaifax [Wed, 19 Dec 2007 08:03:57 +0000 (08:03 +0000)] 
Fix the unpacking of the refered table name under Firebird
This fixes a little glitch introduced in [3959], in case of "implicit FKs"
(that is, {{{ForeignKey("orders")}}}, where the field(s) is missing).

17 years agointroductory docstring bonanza
Mike Bayer [Tue, 18 Dec 2007 23:53:40 +0000 (23:53 +0000)] 
introductory docstring bonanza

17 years agoApply default cascade rules for firebird self-ref ForeignKeys.
Jason Kirtland [Tue, 18 Dec 2007 19:37:03 +0000 (19:37 +0000)] 
Apply default cascade rules for firebird self-ref ForeignKeys.

17 years agoa little pre-lunch decrufting and cleanup
Mike Bayer [Tue, 18 Dec 2007 19:32:03 +0000 (19:32 +0000)] 
a little pre-lunch decrufting and cleanup

17 years agoUse an explicit ordering in the query
Lele Gaifax [Tue, 18 Dec 2007 13:06:24 +0000 (13:06 +0000)] 
Use an explicit ordering in the query

17 years agoAdd Firebird to the list of DBs that needs explicit sequences
Lele Gaifax [Tue, 18 Dec 2007 13:03:55 +0000 (13:03 +0000)] 
Add Firebird to the list of DBs that needs explicit sequences

17 years agoget most oracle tests in sql working again....
Mike Bayer [Tue, 18 Dec 2007 06:13:42 +0000 (06:13 +0000)] 
get most oracle tests in sql working again....

17 years ago- cleanup; lambdas removed from properties; properties mirror same-named functions...
Mike Bayer [Tue, 18 Dec 2007 05:40:06 +0000 (05:40 +0000)] 
- cleanup; lambdas removed from properties; properties mirror same-named functions (more like eventual decorator syntax); remove some old methods, factor out some "raiseerr" ugliness to outer lying functions.
- corresponding_column() integrates "require_embedded" flag with other set arithmetic

17 years ago- select().as_scalar() will raise an exception if the select does not have
Mike Bayer [Tue, 18 Dec 2007 00:24:03 +0000 (00:24 +0000)] 
- select().as_scalar() will raise an exception if the select does not have
exactly one expression in its columns clause.
- added "helper exception" to select.type access, generic functions raise
the chance of this happening
- a slight behavioral change to attributes is, del'ing an attribute
does *not* cause the lazyloader of that attribute to fire off again;
the "del" makes the effective value of the attribute "None".  To
re-trigger the "loader" for an attribute, use
session.expire(instance, [attrname]).
- fix ormtutorial for IS NULL

17 years agofixed del history
Mike Bayer [Sun, 16 Dec 2007 20:32:56 +0000 (20:32 +0000)] 
fixed del history

17 years agoafter_update called with state.obj()
Mike Bayer [Sun, 16 Dec 2007 20:11:36 +0000 (20:11 +0000)] 
after_update called with state.obj()

17 years ago- more fixes to the LIMIT/OFFSET aliasing applied with Query + eagerloads,
Mike Bayer [Sun, 16 Dec 2007 18:32:25 +0000 (18:32 +0000)] 
- more fixes to the LIMIT/OFFSET aliasing applied with Query + eagerloads,
in this case when mapped against a select statement [ticket:904]
- _hide_froms logic in expression totally localized to Join class, including search through previous clone sources
- removed "stop_on" from main visitors, not used
- "stop_on" in AbstractClauseProcessor part of constructor, ClauseAdapter sets it up based on given clause
- fixes to is_derived_from() to take previous clone sources into account, Alias takes self + cloned sources into account. this is ultimately what the #904 bug was.

17 years agoFix bad example of Firebird test DB
Lele Gaifax [Sun, 16 Dec 2007 10:59:06 +0000 (10:59 +0000)] 
Fix bad example of Firebird test DB
Use an absolute path rather than a relative one, and the out-of-the-box
sysdba password. This is just to avoid confusing new testers, that should
add a db.firebird entry in their ~/satest.cfg anyway.