Commit Graph

1062 Commits

Author SHA1 Message Date
Mike Bayer 8690e2e303 tweak to mysql default test 2006-03-13 01:06:33 +00:00
Mike Bayer c5e1abc7f7 refactor to Compiled.get_params() to return new ClauseParameters object, a more intelligent bind parameter dictionary that does type conversions late and preserves the unconverted value; used to fix mappers not comparing correct value in post-fetch [ticket:110]
removed pre_exec assertion from oracle/firebird regarding "check for sequence/primary key value"
fix to Unicode type to check for null, fixes [ticket:109]
create_engine() now uses genericized parameters; host/hostname, db/dbname/database, password/passwd, etc. for all engine connections
fix to select([func(column)]) so that it creates a FROM clause to the column's table, fixes [ticket:111]
doc updates for column defaults, indexes, connection pooling, engine params
unit tests for the above bugfixes
2006-03-13 00:24:54 +00:00
Mike Bayer 2ce45d70c7 added expire() function + unit test fixes [ticket:95] 2006-03-10 05:03:17 +00:00
Mike Bayer d333168e00 utf-8 encoding is switchable at the engine level, ticket [ticket:101] 2006-03-10 04:47:38 +00:00
Mike Bayer 612205c3fd committed patch for MSDouble/tinyint from [ticket:106] 2006-03-10 04:35:34 +00:00
Mike Bayer 05737ef9fa added exception import 2006-03-10 04:26:35 +00:00
Mike Bayer be4373c92d HistoryArrayList checks internal list as a list or dict to clear it 2006-03-10 04:22:59 +00:00
Mike Bayer 3f620ec490 overhaul to types system, decoupled base type and engine-specific type into a composed pattern instead of goofy inheritance....gets rid of TypeDecorator (now a no-op) and enables all inhertance 2006-03-09 18:30:27 +00:00
Mike Bayer 5207bd4c52 fixed assocaition example 2006-03-09 15:54:44 +00:00
Mike Bayer b5060e88ff added 'noninherited table' prop to mapper indicating the "lead" table, in the case of
inheritance.  relations now create priamry/secondary joins against that lead table.  if you want to create it against
an inherited table, use explicit join conditions.
added 'correlate' argument to CompoundSelect to get polymorph example working again.
2006-03-09 00:24:15 +00:00
Mike Bayer f057ed6136 a few tweaks to get table creates/reflection working
table names are always reflected back as having lowercase names
2006-03-08 22:32:55 +00:00
Mike Bayer 6f3bd2b0d4 tweak to engine param.. 2006-03-08 22:11:51 +00:00
Mike Bayer ef6d2c0cf5 added identity() method to mapper, to help get the primary key of an instance. 2006-03-08 21:55:33 +00:00
Mike Bayer 376f4af318 added check to relation that will see if the same table is included between the primaryjoin and secondaryjoin, and raises a descriptive exception if so. 2006-03-08 21:39:53 +00:00
Mike Bayer 06b8c73ad5 serious overhaul to get eager loads to work inline with an inheriting mapper, when the inheritance/eager loads share the same table. mapper inheritance will also favor the columns from the child table over those of the parent table when assigning column values to object attributes. "correlated subqueries" require a flag "correlated=True" if they are in the FROM clause of another SELECT statement, and they want to be correlated. this flag is set by default when using an "exists" clause. 2006-03-08 20:51:51 +00:00
Mike Bayer 3aa4dd6f2b took erroneous 'count' off Alias 2006-03-08 01:18:26 +00:00
Mike Bayer e29da1e6ce took excess visit_func out, handled by ansisql compiler 2006-03-07 05:46:36 +00:00
Mike Bayer 72a8c3aa22 comment 2006-03-07 03:17:34 +00:00
Mike Bayer ab46fefce2 backref() func will also honor lazy=True/False 2006-03-07 03:16:10 +00:00
Mike Bayer 55ad2dc22a added backref() function, allows the creation of a backref where you also send keyword arguments that will be placed on the relation 2006-03-07 03:14:08 +00:00
Mike Bayer 2d596b61c0 checking in patch for column labels limit at 30 chars...what the heck 2006-03-06 23:15:47 +00:00
Mike Bayer 97b1c3a59a patch on index create syntax to fix [ticket:90] so schema name gets included 2006-03-06 19:09:30 +00:00
Mike Bayer 32aa76601d fixed bug in eager loading on a many-to-one [ticket:96], added the ticket tests as a unit test eagerload2.
got eagerload1 to be a unit test also.
2006-03-06 19:06:06 +00:00
Mike Bayer 34cd446912 sqlite likes OFFSET with LIMIT else its buggy 2006-03-06 17:14:50 +00:00
Mike Bayer 1644a44628 a mapper with inheritance will place itself as "dependent" on the inherited mapper; even though this is not usually needed, it allows certain exotic combinations of mapper setups to work (i.e. the one in the polymorph example) 2006-03-06 03:10:46 +00:00
Mike Bayer a0079b6831 added new 'polymorphic' example. still trying to understand it :) .
fixes to relation to enable it to locate "direction" more consistently with inheritance relationships
more tweaks to parenthesizing subqueries, unions, etc.
2006-03-06 02:27:13 +00:00
Mike Bayer 51acad4b5b more tweak to compoundselect parenthesizing/subquery flag 2006-03-06 01:17:12 +00:00
Mike Bayer e59ad037b0 selects within a compound clause dont get parenthesis added
fix to ColumnClause
2006-03-06 01:09:03 +00:00
Mike Bayer 02b9fa23ce delete tables in an inheritance rel. requires them in reverse 2006-03-06 01:07:48 +00:00
Mike Bayer d54b5eba74 added unittest for orm-persisted insert without a postfetch, tweak to engine to only signal postfetch if the passivedefault columns received None/NULL for their parameter (since they dont exec otherwise) 2006-03-05 21:10:20 +00:00
Mike Bayer 9446e490cb got mapper to receive the onupdates after updating an instance (also properly receives defaults on inserts)... 2006-03-05 21:01:21 +00:00
Mike Bayer 9c4f3c0480 got column onupdate working
improvement to Function so that they can more easily be called standalone without having to throw them into a select().
2006-03-05 20:31:44 +00:00
Mike Bayer c1d0c2dffc got column defaults to be executeable 2006-03-04 20:23:37 +00:00
Mike Bayer ffc8dfbdec added public-friendly setattr_clean and append_clean 2006-03-04 20:20:23 +00:00
Mike Bayer 3cacdfcc31 moved name to 'defaults', going to put more default stuff in 2006-03-04 19:29:05 +00:00
Mike Bayer 7c0ff2178b making sequences, column defaults independently executeable 2006-03-04 19:26:23 +00:00
Mike Bayer 7ad8cc9420 removed the dependency of ANSICompiler on SQLEngine. you can now make ANSICompilers and compile SQL with no engine at all. 2006-03-04 18:53:35 +00:00
Mike Bayer e9999c74e6 initial table reflection support courtesy Andrija Zaric 2006-03-04 17:46:08 +00:00
Mike Bayer 59ba54aeb8 changed default "none" parameters to check positional style 2006-03-04 17:45:19 +00:00
Mike Bayer 8f7aa2e89c firebird module initial checkin 2006-03-04 17:41:19 +00:00
Mike Bayer 730d4c2fcb mr. bangerts surprise paragraph rewrite demands strike again 2006-03-04 00:29:09 +00:00
jeff b87921caf3 rudimentary support for many-to-many relation. Still requires a separately defined intermediate table. 2006-03-03 14:46:39 +00:00
Mike Bayer 13710ae742 added util.Logger object with configurable thread/timestamp view 2006-03-03 00:24:41 +00:00
Mike Bayer 64792659d1 changed ENGINE to TYPE, for mysql 4 compatibility 2006-03-02 17:38:37 +00:00
Mike Bayer 9395ebdf70 formatting 2006-03-02 02:11:51 +00:00
Mike Bayer ecebb7cd87 its release time rel_0_1_3 2006-03-02 01:48:58 +00:00
Mike Bayer 9985d21385 added objectstore.refresh(), including supporting changes in mapper, attributes, util 2006-03-02 01:45:31 +00:00
Mike Bayer 2d47f5a0b9 unicode 2006-03-02 00:44:18 +00:00
Mike Bayer cdfcf1ac6b module fix 2006-03-02 00:42:26 +00:00
Mike Bayer 413dcdf0f4 engine argument on tables optional
test suite uses BaseProxyEngine as a base for the tester engine
documented global proxy engine
2006-03-02 00:38:16 +00:00