Commit Graph

  • 55c9b05cdb Tweaks for assert_unordered_result Jason Kirtland 2007-11-01 23:13:30 +00:00
  • c87295cdfd Added AssertMixin.assert_unordered_result Jason Kirtland 2007-11-01 20:59:30 +00:00
  • 2e9501683d - session checks more carefully when determining "object X already in another session"; e.g. if you pickle a series of objects and unpickle (i.e. as in a Pylons HTTP session or similar), they can go into a new session without any conflict - added stricter checks around session.delete() similar to update() - shored up some old "validate" stuff in session/uow Mike Bayer 2007-11-01 20:12:36 +00:00
  • 1bf0aee385 Added rowset() testing helper. Jason Kirtland 2007-11-01 19:40:08 +00:00
  • ca73fbab87 Fixed truth-evaluation of mapped objects (part of [ticket:676] Jason Kirtland 2007-11-01 16:36:50 +00:00
  • 66cd772094 - merged factor_down_bindparams branch. - removed ClauseParameters object; compiled.params returns a regular dictionary now, as well as result.last_inserted_params()/last_updated_params(). - various code trimming, method removals. Mike Bayer 2007-11-01 03:58:21 +00:00
  • ad9f8b8158 Added command line options to add tripwires for __hash__, __eq__ and __nonzero__ on mapped classes. Jason Kirtland 2007-10-31 23:49:09 +00:00
  • d5aa08160a - A more efficient IdentitySet Jason Kirtland 2007-10-31 19:53:27 +00:00
  • 3f4d34b42c - split ScalarInstrumentedAttribute into a "scalar" and an "object" version. The "object" version loads the existing value on set/del, fires events, and handles trackparent operations; the "scalar" version does not. - column loaders now use the "scalar" version of InstrumentedAttribute, so that event handlers etc. don't fire off for regular column attribute operations. - some adjustments to AttributeHistory to work properly for non-loaded attributes - deferred column attributes no longer trigger a load operation when the attribute is assigned to. in those cases, the newly assigned value will be present in the flushes' UPDATE statement unconditionally. Mike Bayer 2007-10-31 19:11:22 +00:00
  • 60c3a1e8a2 dont call up new session unless save_on_init Mike Bayer 2007-10-31 17:15:30 +00:00
  • 5a1863d092 - also added proxying of save_or_update to scoped sessions. - session.update() raises an error when updating an instance that is already in the session with a different identity - adjusted zoomarks lower limits so I can get a nice clean run Ants Aasma 2007-10-31 16:30:06 +00:00
  • 3426d50d0c added REAL to reflection list Mike Bayer 2007-10-31 15:52:33 +00:00
  • b005aa4e60 Added proxying of __contains__ and __iter__ methods for scoped sessions Ants Aasma 2007-10-31 12:14:22 +00:00
  • 7ff65cd035 Fixup sp_columns call Paul Johnston 2007-10-31 10:48:30 +00:00
  • 2d3f907ac0 Fixed a truncation error when re-assigning a subset of a collection (obj.relation = obj.relation[1:]) [ticket:834] Jason Kirtland 2007-10-31 09:21:22 +00:00
  • 661774055c Added util.IdentitySet to support [ticket:676] and [ticket:834] Jason Kirtland 2007-10-31 09:13:12 +00:00
  • 0462f95f80 Formatting tweaks. Jason Kirtland 2007-10-31 05:44:17 +00:00
  • 52d5151aa4 - Removed unused util.hash() - Fixed __hash__ for association proxy collections Jason Kirtland 2007-10-31 03:25:04 +00:00
  • 259b256759 - Don't re-save objects in these tests (post r3681) Jason Kirtland 2007-10-31 03:17:51 +00:00
  • c2092c7254 - Refinements for maxdb's handling of SERIAL and FIXED columns - Expanded maxdb's set of paren-less functions Jason Kirtland 2007-10-31 00:28:53 +00:00
  • 8edda5baf6 - Added the NUMERIC sql type alias Jason Kirtland 2007-10-31 00:21:36 +00:00
  • 206c0b9792 - fix to "row switch" behavior, i.e. when an INSERT/DELETE is combined into a single UPDATE; many-to-many relations on the parent object update properly. [ticket:841] - it's an error to session.save() an object which is already persistent [ticket:840] - changed a bunch of repr(obj) calls in session.py exceptions to use mapperutil.instance_str() Mike Bayer 2007-10-30 18:04:00 +00:00
  • adcf8ea00d - restored MapperExtension functionality for [ticket:829], added test coverage - changed naming convention in mapper.py tests to test_<testname> Mike Bayer 2007-10-29 16:12:29 +00:00
  • bbebcdf8f5 - fixed INSERT statements w.r.t. primary key columns that have SQL-expression based default generators on them; SQL expression executes inline as normal but will not trigger a "postfetch" condition for the column, for those DB's who provide it via cursor.lastrowid Mike Bayer 2007-10-28 21:28:53 +00:00
  • 19fcf37483 - fixed expression translation of text() clauses; this repairs various ORM scenarios where literal text is used for SQL expressions Mike Bayer 2007-10-28 18:25:37 +00:00
  • 103c867cf3 - a little cleanup to deferred inheritance loading Mike Bayer 2007-10-28 04:36:36 +00:00
  • 0282dc2738 - merged path_based_options branch - behavior of query.options() is now fully based on paths, i.e. an option such as eagerload_all('x.y.z.y.x') will apply eagerloading to only those paths, i.e. and not 'x.y.x'; eagerload('children.children') applies only to exactly two-levels deep, etc. [ticket:777] - removes old compiler()/schemagenerator()/schemadropper() methods from mysql dialect Mike Bayer 2007-10-28 01:51:43 +00:00
  • 1fee09fd07 - 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 2007-10-27 18:45:20 +00:00
  • 4a4daad81a - 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 2007-10-27 17:41:30 +00:00
  • cba1e9a01e clear MapperStub ArgSingletons on clear_mappers() too... Mike Bayer 2007-10-27 01:19:25 +00:00
  • d5b86bbb8a - fixed eager calc endless loop, introduced by r3646? this issue should have been present before 3646 though. Mike Bayer 2007-10-27 00:50:20 +00:00
  • 4127d22196 - fixed clear_mappers() behavior to better clean up after itself Mike Bayer 2007-10-27 00:24:43 +00:00
  • d6568b4829 Make access dao detecting more reliable #828 Paul Johnston 2007-10-26 18:17:14 +00:00
  • 1e7510645c remove unused method Mike Bayer 2007-10-25 19:30:43 +00:00
  • aa3c4067b7 - removed needless 'continue' Mike Bayer 2007-10-25 16:58:02 +00:00
  • b4e3ba70ce - 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 2007-10-25 16:57:04 +00:00
  • 763a70d531 - de-cruftified backref configuration code, backrefs which step on existing properties now raise an error [ticket:832] Mike Bayer 2007-10-24 23:25:47 +00:00
  • f64aac55cc A --db alias for max. Jason Kirtland 2007-10-24 07:55:18 +00:00
  • 6378c34799 - Added initial version of MaxDB dialect. - All optional test Sequences are now optional=True Jason Kirtland 2007-10-23 07:38:07 +00:00
  • 21c6fa79b1 Fixed assert_sql_count exception logic. Jason Kirtland 2007-10-23 07:03:07 +00:00
  • 469c687381 Updated for r3655. Jason Kirtland 2007-10-23 01:57:40 +00:00
  • d89b2acdd7 Added support for dialects that have both sequences and autoincrementing PKs. Jason Kirtland 2007-10-23 01:47:21 +00:00
  • 8dfff3888f - The post_exec() hook now gets invoked before autocommit fires. Jason Kirtland 2007-10-23 01:16:27 +00:00
  • d433ec4f0d Changed some columns from TEXT to VARCHAR for sapdb. Jason Kirtland 2007-10-22 23:01:02 +00:00
  • 9d7c027cb7 - Now guarding against broken DB-APIs when wrapping their exceptions. - Added an explicit test for exception wrapping. Jason Kirtland 2007-10-22 19:24:02 +00:00
  • 20a7a172af - sqlite will reflect "DECIMAL" as a numeric column Mike Bayer 2007-10-22 15:23:08 +00:00
  • f3af574650 exception message, [ticket:826] Mike Bayer 2007-10-22 15:20:15 +00:00
  • 726bb2a24c bumped sqlite version for empty insert test to 3.4 Mike Bayer 2007-10-21 16:45:58 +00:00
  • 0a3913c61a - 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]... Mike Bayer 2007-10-21 16:36:34 +00:00
  • 565dfd3790 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. Jason Kirtland 2007-10-20 17:14:46 +00:00
  • ae553db3cd - Added contains operator (which generate a "LIKE %<other>%" clause). Gaëtan de Menten 2007-10-19 10:27:06 +00:00
  • 974f59f091 Fixed empty (zero column) sqlite inserts, allowing inserts on autoincrementing single column tables. Jason Kirtland 2007-10-19 07:02:48 +00:00
  • f32131dac2 - added test coverage for unknown type reflection, fixed sqlite/mysql handling of type reflection for unknown types Mike Bayer 2007-10-18 17:56:18 +00:00
  • ed2d7dc805 typos, PassiveDefault likes "text()" otherwise the argument is a literal Mike Bayer 2007-10-17 19:10:16 +00:00
  • 3e7f1cc9f3 Bump! Jason Kirtland 2007-10-17 18:04:33 +00:00
  • a5e01cafdb put a little note at the top directing users to the more *exciting* changes rel_0_4_0 Mike Bayer 2007-10-17 17:53:12 +00:00
  • ccaa530fcb Update for 0.4.0 Jason Kirtland 2007-10-17 17:41:59 +00:00
  • cc41f0d3cf typo Mike Bayer 2007-10-17 17:40:04 +00:00
  • cb9321116f - 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 2007-10-17 16:49:15 +00:00
  • 14c9d63672 Included 0.3.11 changelog Jason Kirtland 2007-10-17 16:04:58 +00:00
  • a0748b3d66 Make ActiveMapper support viewonly property Paul Johnston 2007-10-17 11:23:39 +00:00
  • 5154d30418 - Added support for UPDATE with LIMIT on mysql. - Added mysql dialect tests for SET columns and the in_ operator. Jason Kirtland 2007-10-16 23:59:05 +00:00
  • 6bbc7dd157 change the in_ API to accept a sequence or a selectable [ticket:750] Ants Aasma 2007-10-16 22:57:05 +00:00
  • cc0e7c796f - string-based query param parsing/config file parser understands wider range of string values for booleans [ticket:817] Mike Bayer 2007-10-16 21:33:21 +00:00
  • a54deba01d Typo fix (thanks Ben!) Jason Kirtland 2007-10-16 21:11:39 +00:00
  • 9b22fc0a9b - 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. Mike Bayer 2007-10-16 16:03:59 +00:00
  • c262a3b9e5 - query.get() and related functions (like many-to-one lazyloading) generate randomly-generated bind parameter names, to prevent name conflicts with bind parameters that already exist in the mapped selectable. Mike Bayer 2007-10-16 16:00:37 +00:00
  • 9226871456 Fixed a couple of typos & hardened against future similar errors. Jason Kirtland 2007-10-16 01:17:39 +00:00
  • 7fac6542c5 - inline optimizations added to locate_dirty() which can greatly speed up repeated calls to flush(), as occurs with autoflush=True [ticket:816] Mike Bayer 2007-10-15 17:24:08 +00:00
  • dac7ab4a0f fix typo in examples Gaëtan de Menten 2007-10-15 08:51:23 +00:00
  • f64768658d - much more query verbiage - contains() operator doesn't need to generate negation criterion unless many-to-many Mike Bayer 2007-10-15 01:54:04 +00:00
  • e57c94c64f documenting PropComparator behavior in orm tutorial Mike Bayer 2007-10-14 20:34:39 +00:00
  • d12392c38d removed default schema test; this is supported in 0.4 rel_0_3_11 Mike Bayer 2007-10-14 19:15:11 +00:00
  • 5b92c3d097 - 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 2007-10-14 19:15:09 +00:00
  • 79dafdf3d4 Restored unicode foreign key tests for [ticket:729]. Jason Kirtland 2007-10-14 18:35:51 +00:00
  • b56ed8ccb8 - backref remove object operation doesn't fail if the other-side collection doesn't contain the item, supports noload collections [ticket:813] Mike Bayer 2007-10-14 18:06:13 +00:00
  • bd941d126e - backref remove object operation doesn't fail if the other-side collection doesn't contain the item, supports noload collections [ticket:813] Mike Bayer 2007-10-14 18:01:37 +00:00
  • dda6a5f5a8 Added a missing @supported. Jason Kirtland 2007-10-14 17:20:13 +00:00
  • 6741cc58cf - removed LONG_STRING, LONG_BINARY from "binary" types, so type objects don't try to read their values as LOB [ticket:622], [ticket:751] Mike Bayer 2007-10-14 16:58:48 +00:00
  • 9f856b88f6 - 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 Mike Bayer 2007-10-14 16:56:32 +00:00
  • be6f2a9c5b Added test for DBAPIError exception wrapping. Jason Kirtland 2007-10-14 16:31:21 +00:00
  • 0f49157bc9 Adjusted zoomark ranges for 2.4 and 2.5. Jason Kirtland 2007-10-13 22:18:35 +00:00
  • f63a3826bd Moved author comment preventing python 2.3 from importing the module... Jason Kirtland 2007-10-13 21:42:08 +00:00
  • 0c31d3bd1f Snipped another generator expression. Jason Kirtland 2007-10-13 21:37:49 +00:00
  • 302b10253c Converted errant generator expression. Jason Kirtland 2007-10-13 21:22:13 +00:00
  • 666997c8fa Assorted unused imports from pyflakes, docstring tweaks, formatting. Jason Kirtland 2007-10-13 21:03:49 +00:00
  • 059b939dba Winnowed __all__ for 'import * from sqlalchemy.engine' Jason Kirtland 2007-10-13 20:50:04 +00:00
  • 810e29e340 Unused imports. Jason Kirtland 2007-10-13 20:40:05 +00:00
  • 224ff658e0 set svn:eol-style native Jason Kirtland 2007-10-13 20:35:42 +00:00
  • 9f525a0145 Fixed reference bug in Connect, switched docstring format Jason Kirtland 2007-10-13 20:26:24 +00:00
  • 05b07dfb17 Removed a tab. Jason Kirtland 2007-10-13 20:11:36 +00:00
  • 0b73be7b46 - sybase cleanups: unused imports, adjusted docstrings, trailing whitespace - added sybase dialect test - added sybase and access to generated docs Jason Kirtland 2007-10-13 20:10:14 +00:00
  • a0ed498ff5 Fix ActiveMapper unit tests Paul Johnston 2007-10-13 00:01:11 +00:00
  • aafe57ab5d A few fixes to the access dialect Paul Johnston 2007-10-12 23:39:28 +00:00
  • 2585a470c0 Make ActiveMapper use scoped_session instead of SessionContext Paul Johnston 2007-10-12 20:53:20 +00:00
  • 2821adc57c Fix broken update/delete queries on MSSQL when tables have a schema Paul Johnston 2007-10-12 20:08:54 +00:00
  • 833503ed23 More ORDER BY, now with use_labels. Jason Kirtland 2007-10-12 18:08:11 +00:00
  • df929d364d - Added small DESC exercise to test_order_by. Jason Kirtland 2007-10-12 17:46:42 +00:00
  • 7f36007477 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 2007-10-12 12:53:33 +00:00
  • 69ba01265e 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 Roger Demetrescu 2007-10-12 06:02:15 +00:00