Commit Graph

4199 Commits

Author SHA1 Message Date
Mike Bayer ba2bd53ec9 send a NASA probe to the buildbot 2009-01-03 17:28:43 +00:00
Michael Trier 4dec075ee5 Flagged two versioning tests as failing on MSSQL. The flush occurs even though
there should be a concurrency issue.

I cheated and marked these as FIXME. With this commit all MSSQL tests pass
now. The work of correcting the ``fails_on`` tests begins.
2009-01-03 05:32:11 +00:00
Michael Trier 6b6848f124 sqlite tests run fine locally but the buildbot seems to have an issue. Perhaps this will work. 2009-01-03 04:57:31 +00:00
Michael Trier c6558eecb5 Some of the ordering fixes messed up MySQL. This should work better. Better testing next time. 2009-01-03 04:57:29 +00:00
Michael Trier 3d487b64eb Modified DefaultTest in order to get passage on mssql and still test the right stuff. 2009-01-03 03:59:54 +00:00
Michael Trier dd73bf16fd Excluded another failing test from the mssql dialect.
MSSQL doesn't allow ON UPDATE for self-referential keys. The tree of cascading
referential actions must only have one path to a particular table on the
cascading referential actions tree.
2009-01-03 03:59:49 +00:00
Mike Bayer 9fe69cb503 - Fixed some deep "column correspondence" issues which could
impact a Query made against a selectable containing
multiple versions of the same table, as well as
unions and similar which contained the same table columns
in different column positions at different levels.
[ticket:1268]
2009-01-03 02:42:34 +00:00
Michael Trier 0bd31484ea A couple of ordering fixes for the tests. 2009-01-03 02:32:10 +00:00
Michael Trier 6ea3521b45 sqlite reflection now stores the actual DefaultClause value for the column. 2009-01-02 22:40:45 +00:00
Mike Bayer 5bc1f17cb5 - mysql, postgres: "%" signs in text() constructs are automatically escaped to "%%".
Because of the backwards incompatible nature of this change,
a warning is emitted if '%%' is detected in the string.  [ticket:1267]
2009-01-02 21:24:17 +00:00
Michael Trier 2f2d84fbb1 Swap out text_as_varchar on the mssql dialect for the Types tests. 2009-01-02 20:33:14 +00:00
Michael Trier 54598789ee Marked a couple of unicode schema tests as failing on mssql. 2009-01-02 20:33:11 +00:00
Mike Bayer e878a96e6e found some more _Function->Function 2009-01-02 20:00:31 +00:00
Mike Bayer 023cc62bfc - sqlalchemy.sql.expression.Function is now a public
class.  It can be subclassed to provide user-defined
SQL functions in an imperative style, including
with pre-established behaviors.  The postgis.py
example illustrates one usage of this.
2009-01-02 19:45:05 +00:00
Michael Trier eb1a7c1bdf Marked mssql test as failing since it cannot update identity columns. 2009-01-02 18:25:08 +00:00
Michael Trier de97a18bb7 Mapped char_length to the LEN() function for mssql. 2009-01-02 18:25:04 +00:00
Michael Trier a69db2ae63 Corrected a UOW DefaultTest for mssql because it requires the identity column setup. 2009-01-02 18:25:00 +00:00
Michael Trier f793a88403 Added ability to use subselects within INSERTS on mssql. 2009-01-02 18:24:57 +00:00
Michael Trier 9c83fafc27 Specialized trigger tests to accomodate mssql syntax. 2009-01-02 18:24:52 +00:00
Michael Trier a7fe20bfda Added note for mssql about using snapshot isolation in order to get multiple
connection session tests to pass.
2009-01-02 18:24:49 +00:00
Michael Trier 0f842d28a1 Turned off the implicit transaction behavior of MSSQL.
This corrects the savepoint tests.
2009-01-02 18:24:47 +00:00
Mike Bayer 50dfbc7e79 - Custom comparator classes used in conjunction with
column_property(), relation() etc. can define
new comparison methods on the Comparator, which will
become available via __getattr__() on the
InstrumentedAttribute.   In the case of synonym()
or comparable_property(), attributes are resolved first
on the user-defined descriptor, then on the user-defined
comparator.
2009-01-02 18:22:50 +00:00
Michael Trier a52a0c43c3 Modified UOW so that a Row Switch scenario will not attempt to update the Primary Key. 2009-01-02 04:54:45 +00:00
Michael Trier 50e077ee52 Cleanup of r5556. Makes the description_encoding less public since this is a
workaround for the pyodbc dbapi.
2009-01-02 03:29:33 +00:00
Jonathan Ellis 3373994cfd emacs 2008-12-31 14:25:53 +00:00
Mike Bayer 7391c7bd4d yes ive been watching the IRC channel. restored setup_instance() to ClassManager and added coverage for mapper's usage of it. 2008-12-31 05:28:53 +00:00
Mike Bayer 96c76ec79e - added an extremely basic illustration of a PostGIS
integration to the examples folder.
2008-12-30 20:38:32 +00:00
Michael Trier f62a78242d Modifications to the mssql dialect in order to to pass through unicode in the pyodbc dialect. 2008-12-30 06:39:37 +00:00
Michael Trier dfd80ba089 Added a new description_encoding attribute on the dialect.
This is used for encoding the column name when processing the metadata. This
usually defaults to utf-8.
2008-12-30 06:39:33 +00:00
Michael Trier 4e8a817ac2 A few 2.3 cleanup items. 2008-12-30 06:24:59 +00:00
Michael Trier df267fcc77 Added in MSGenericBinary to the mssql dialect tests. 2008-12-29 21:38:04 +00:00
Mike Bayer f9adad3acc - added another usage recipe for contains_eager()
- some typos
2008-12-29 20:25:11 +00:00
Mike Bayer 8598780e8d - Added OracleNVarchar type, produces NVARCHAR2, and also
subclasses Unicode so that convert_unicode=True by default.
      NVARCHAR2 reflects into this type automatically so
      these columns pass unicode on a reflected table with no explicit
      convert_unicode=True flags.  [ticket:1233]
2008-12-28 22:32:04 +00:00
Mike Bayer bd23baf4ac - Can pass mapped attributes and column objects as keys
to query.update({}).  [ticket:1262]

- Mapped attributes passed to the values() of an
expression level insert() or update() will use the
keys of the mapped columns, not that of the mapped
attribute.
2008-12-28 21:48:12 +00:00
Michael Trier 8669eda82d Added in a new MSGenericBinary type.
This maps to the Binary type so it can implement the specialized behavior of
treating length specified types as fixed-width Binary types and non-length
types as an unbound variable length Binary type.
2008-12-28 21:07:57 +00:00
Mike Bayer 7009653aa1 - RowProxy objects can be used in place of dictionary arguments
sent to connection.execute() and friends.  [ticket:935]
2008-12-28 20:58:38 +00:00
Mike Bayer d245397bd2 - Fixed shard_id argument on ShardedSession.execute().
[ticket:1072]
2008-12-28 19:54:58 +00:00
Michael Trier a848e2ac47 Corrected reflection issue in mssql where include_columns doesn't include the PK. 2008-12-28 17:38:26 +00:00
Michael Trier cae83f6d4f On MSSQL if a field is part of the primary_key then it should not allow NULLS. 2008-12-28 07:40:56 +00:00
Michael Trier defba2fc02 MSSQL refactoring of BINARY type and addition of MSVarBinary and MSImage.
- Added in new types: MSVarBinary and MSImage
- Modified MSBinary to now return BINARY instead of IMAGE. This is a
  backwards incompatible change. Closes #1249.
2008-12-28 01:46:44 +00:00
Mike Bayer 0465d0b880 - added a full exercising test for all of #946, #947, #948, #949 2008-12-27 19:35:12 +00:00
Mike Bayer 8220d9cdbe - Added a mutex for the initial pool creation when
using pool.manage(dbapi).  This prevents a minor
case of "dogpile" behavior which would otherwise
occur upon a heavy load startup.  [ticket:799]
2008-12-27 18:45:41 +00:00
Mike Bayer f80471e6f3 - Added ScopedSession.is_active accessor. [ticket:976] 2008-12-27 18:24:00 +00:00
Mike Bayer fbcaa34b9e - NullPool supports reconnect on failure behavior.
[ticket:1094]
2008-12-27 18:07:35 +00:00
Mike Bayer 83a756c541 - Reflected foreign keys will properly locate
their referenced column, even if the column
was given a "key" attribute different from
the reflected name.  This is achieved via a
new flag on ForeignKey/ForeignKeyConstraint
called "link_to_name", if True means the given
name is the referred-to column's name, not its
assigned key.
[ticket:650]
- removed column types from sqlite doc, we
aren't going to list out "implementation" types
since they aren't significant and are less present
in 0.6
- mysql will report on missing reflected foreign
key targets in the same way as other dialects
(we can improve that to be immediate within
reflecttable(), but it should be within
ForeignKeyConstraint()).
- postgres dialect can reflect table with
an include_columns list that doesn't include
one or more primary key columns
2008-12-26 05:28:38 +00:00
Mike Bayer 3ea2888b7f fix imports for index reflection unit test 2008-12-26 00:51:44 +00:00
Michael Trier 8a8a7ffc52 Fixed bugs in sqlalchemy documentation. Closes #1263. 2008-12-24 14:43:24 +00:00
Mike Bayer 2876c7e46f - Exceptions raised during compile_mappers() are now
preserved to provide "sticky behavior" - if a hasattr()
call on a pre-compiled mapped attribute triggers a failing
compile and suppresses the exception, subsequent compilation
is blocked and the exception will be reiterated on the
next compile() call.  This issue occurs frequently
when using declarative.
2008-12-24 04:47:06 +00:00
Mike Bayer a75af96bcc use new anonymize style for the public _anonymize as well 2008-12-23 19:16:01 +00:00
Michael Trier 88aad2a374 Added MSSQL support for introspecting the default schema name for the logged in user. Thanks Randall Smith. Fixes #1258. 2008-12-23 06:01:09 +00:00