Commit Graph

3982 Commits

Author SHA1 Message Date
Michael Trier d4dcb2e217 Mysql no longer expects include_columns to be specified in lowercase. Fixes #1206. 2008-10-28 16:48:13 +00:00
Jason Kirtland c9591657dd Fixed mysql FK reflection for the edge case where a Table has expicitly provided a schema= that matches the connection's default schema. 2008-10-27 22:56:53 +00:00
Jonathan Ellis d56c1f1663 r/m wildcard imports. fixes #1195 2008-10-27 19:49:49 +00:00
Mike Bayer c36271e23b - InstanceState object now removes circular references to
itself upon disposal to keep it outside of cyclic garbage
collection.
2008-10-26 20:02:19 +00:00
Mike Bayer 76e8175971 - moved _FigureVisitName into visitiors.VisitorType, added Visitor base class to reduce dependencies
- implemented _generative decorator for select/update/insert/delete constructs
- other minutiae
2008-10-25 19:44:21 +00:00
Mike Bayer 25e5157785 call drop # 2 2008-10-25 18:24:13 +00:00
Mike Bayer 9160ce0d45 call drop 2008-10-25 18:23:46 +00:00
Mike Bayer e82eebb368 - When using Query.join() with an explicit clause for the
ON clause, the clause will be aliased in terms of the left
side of the join, allowing scenarios like query(Source).
from_self().join((Dest, Source.id==Dest.source_id)) to work
properly.
2008-10-25 18:04:59 +00:00
Mike Bayer af1bb6b955 small fix 2008-10-25 18:00:37 +00:00
Mike Bayer f7a00f30d5 a couple of refinements 2008-10-25 17:19:15 +00:00
Mike Bayer baa9006c28 remove erroneous comments 2008-10-24 19:43:29 +00:00
Mike Bayer eba763b258 two more cache examples 2008-10-24 19:41:25 +00:00
Mike Bayer ecf22b390b auto_convert_lobs=False honored by OracleBinary, OracleText types
[ticket:1178]
2008-10-24 17:09:58 +00:00
Mike Bayer 3bbf8037f8 - fixed some oracle unit tests in test/sql/
- wrote a docstring for oracle dialect, needs formatting perhaps
- made FIRST_ROWS optimization optional based on optimize_limits=True, [ticket:536]
2008-10-24 15:58:17 +00:00
Mike Bayer 4ba4964425 2.4 callcounts of course go up for no apparent reason 2008-10-23 02:39:52 +00:00
Mike Bayer 99cd1346fb - CompileTests run without the DBAPI being used
- added stack logic back to visit_compound(), pared down is_subquery
2008-10-23 02:35:08 +00:00
Mike Bayer 1ccdfb5172 call count pinata party 2008-10-23 02:22:57 +00:00
Michael Trier 3d0fe5bfe2 Demonstrate mssql url examples for the database engine documentation. Closes #1198. 2008-10-23 02:09:27 +00:00
Michael Trier c4da034f7e Included documentation about the defaults for create_session() and how they differ from sessionmaker(). Closes #1197. 2008-10-23 01:47:44 +00:00
Michael Trier f919df47c7 Corrected case in mssql where binary expression has bind parameters on both sides. 2008-10-23 01:47:40 +00:00
Mike Bayer c356219690 - Added more granularity to internal attribute access, such
that cascade and flush operations will not initialize
unloaded attributes and collections, leaving them intact for
a lazy-load later on.  Backref events still initialize
attrbutes and collections for pending instances.
[ticket:1202]
2008-10-22 16:09:19 +00:00
Mike Bayer ee7e964ad4 add lengths to cols 2008-10-21 21:12:03 +00:00
Mike Bayer 17adfc8adc - polymorphic_union() function respects the "key" of each
Column if they differ from the column's name.
2008-10-21 21:07:04 +00:00
Mike Bayer e17b7f4bc9 - added NoReferencedColumnError, common base class of NoReferenceError
- relation() won't hide unrelated ForeignKey errors inside of
the "please specify primaryjoin" message when determining
join condition.
2008-10-21 16:17:24 +00:00
Michael Trier e7b43dd33f Corrected missing declaration in the mssql dialect test. 2008-10-21 03:21:16 +00:00
Michael Trier 00cec7c088 Corrected the is_subquery() check based on recent changes. Excluded the test_in_filtering_advanced test for mssql. 2008-10-21 02:46:43 +00:00
Ants Aasma 11619ad8ee Slightly changed behavior of IN operator for comparing to empty collections. Now results in inequality comparison against self. More portable, but breaks with stored procedures that aren't pure functions. 2008-10-20 20:41:09 +00:00
Michael Trier 9dd05715de Corrected profiling expected call count down to 42 for the test_insert test. 2008-10-20 16:24:30 +00:00
Michael Trier c81c7ff3d5 Modifications to allow the backends to control the behavior of an empty insert. If supports_empty_insert is True then the backend specifically supports the 'insert into t1 () values ()' syntax. If supports_default_values is True then the backend supports the 'insert into t1 default values' syntax. If both are false then the backend has no support for empty inserts at all and an exception gets raised. Changes here are careful to not change current behavior except where the current behavior was failing to begin with. 2008-10-20 15:21:00 +00:00
Mike Bayer abcb5605f9 - Improved weakref identity map memory management to no longer
require mutexing, resurrects garbage collected instance
on a lazy basis for an InstanceState with pending changes.
2008-10-19 19:26:48 +00:00
Michael Trier 291077f364 Verified that Subqueries are not allowed in VALUES. mssql supports a SELECT syntax but only as the source of all inserts.
(cherry picked from commit 4516db6b322fb1feaa04915f09b8b4fabd6b9735)
2008-10-19 03:00:22 +00:00
Michael Trier dfd71d6ac8 Cleaned up the create_connect_args so that it makes no expectations about keys. Fixes 1193. Added server version info into mssql pyodbc dialect. 2008-10-19 01:18:15 +00:00
Mike Bayer 6ac91ccc8c tiny tiny speed improvements.... 2008-10-18 19:39:34 +00:00
Mike Bayer edec6707ec call count still goes to 131 for 2.4 despite the removal of ~12 lines from visit_select() 2008-10-18 18:25:21 +00:00
Mike Bayer a20222fc22 - 0.5.0rc3, doh
- The internal notion of an "OID" or "ROWID" column has been
removed.  It's basically not used by any dialect, and the
possibility of its usage with psycopg2's cursor.lastrowid
is basically gone now that INSERT..RETURNING is available.

- Removed "default_order_by()" method on all FromClause
objects.
- profile/compile/select test is 8 function calls over on buildbot 2.4 for some reason, will adjust after checking
the results of this commit
2008-10-18 18:14:06 +00:00
Mike Bayer 223bd3688d oracle doesnt seem to like CLOB in unions.... 2008-10-18 17:45:04 +00:00
Mike Bayer 1127b10b27 - "not equals" comparisons of simple many-to-one relation
to an instance will not drop into an EXISTS clause
and will compare foreign key columns instead.

- removed not-really-working use cases of comparing
a collection to an iterable.  Use contains() to test
for collection membership.

- Further simplified SELECT compilation and its relationship
to result row processing.

- Direct execution of a union() construct will properly set up
result-row processing. [ticket:1194]
2008-10-18 17:34:52 +00:00
Jason Kirtland 654794cdcf Moved r5164's @lazy_property to @memoized_property, updated existing @memoize consumers. 2008-10-17 20:04:11 +00:00
Jason Kirtland 6481d24642 Cache polymorphic_iterator in UOWTask; substantial savings for polymorphism-heavy workloads. 2008-10-17 19:19:05 +00:00
Michael Trier fc35f5b6e0 Unless I'm missing something mssql doesn't support and / or within column selects. Even using the case when syntax it's not possible to test truth in this manner. 2008-10-16 17:14:30 +00:00
Mike Bayer 4ca89fd3c4 - String's (and Unicode's, UnicodeText's, etc.) convert_unicode
logic disabled in the sqlite dialect, to adjust for pysqlite
2.5.0's new requirement that only Python unicode objects are
accepted;
http://itsystementwicklung.de/pipermail/list-pysqlite/2008-March/000018.html
rel_0_5rc2
2008-10-12 14:39:20 +00:00
Mike Bayer 40b1aa8f24 reduce cruft related to serializable loaders 2008-10-12 05:13:46 +00:00
Mike Bayer 3bf1ddfb91 a much easier way to ArgSingleton 2008-10-12 04:25:53 +00:00
Michael Trier 41e1f5526c Removed the visit_function stuff in mssql dialect. Added some tests for the function overrides. Fixed up the test_select in the sql/defaults.py tests which was a mess. 2008-10-11 16:14:20 +00:00
Michael Trier b3c39decc1 Correction of mssql schema reflection in reflectable. Still a problem since the assumed default is dbo, whereas it could be modified by the connection. Allows SchemaTest.test_select to pass now. 2008-10-11 16:14:07 +00:00
Michael Trier 188a990e22 indicated that test_empty_insert fails on mssql since pyodbc returns a -1 always for the result.rowcount. 2008-10-09 23:28:45 +00:00
Michael Trier e0742ada97 Corrected docstring for Query.one. Fixes #1190. 2008-10-08 16:05:46 +00:00
Mike Bayer ff3df488f5 - Oracle will detect string-based statements which contain
comments at the front before a SELECT as SELECT statements.
      [ticket:1187]
2008-10-07 16:58:53 +00:00
Michael Trier 86c3992318 Added in sqlite3 DBAPI to the SQLite dbengine docs. This along with a wiki edit on Database Features should close #1145. 2008-10-05 13:28:56 +00:00
Michael Trier 9e3d161d0d Documented synonym_for and comparable_using in the main docstring for declarative. Fixes #1144. 2008-10-05 03:51:48 +00:00