]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
16 years agoskip test_raw_qmark/sprintf on zxjdbc
Philip Jenvey [Tue, 23 Jun 2009 01:01:39 +0000 (01:01 +0000)] 
skip test_raw_qmark/sprintf on zxjdbc

16 years agorestored table.key
Mike Bayer [Mon, 22 Jun 2009 22:00:29 +0000 (22:00 +0000)] 
restored table.key

16 years agosince we aren't using text() in the DefaultClause we reflect, we need to unquote...
Mike Bayer [Mon, 22 Jun 2009 21:27:10 +0000 (21:27 +0000)] 
since we aren't using text() in the DefaultClause we reflect, we need to unquote the incoming default from
reflection.  this is sqlite so far.  not quite sure what will happen with other dialects yet.

16 years agofixes
Mike Bayer [Sat, 20 Jun 2009 17:31:25 +0000 (17:31 +0000)] 
fixes

16 years ago- functions and operators generated by the compiler now use (almost) regular
Mike Bayer [Sat, 20 Jun 2009 17:20:09 +0000 (17:20 +0000)] 
- functions and operators generated by the compiler now use (almost) regular
dispatch functions of the form "visit_<opname>" and "visit_<funcname>_fn"
to provide customed processing.  This replaces the need to copy the "functions"
and "operators" dictionaries in compiler subclasses with straightforward
visitor methods, and also allows compiler subclasses complete control over
rendering, as the full _Function or _BinaryExpression object is passed in.
- move the pool assertion to be module-level, zoomark tests keep the connection
open across tests.

16 years ago- added first() method to ResultProxy
Mike Bayer [Sat, 20 Jun 2009 14:53:32 +0000 (14:53 +0000)] 
- added first() method to ResultProxy
- corrected all the hanging fetchone()s in test_query so that jython passes without hanging

16 years agojython pool tests pass 100% [ticket:1444]
Mike Bayer [Fri, 19 Jun 2009 22:15:23 +0000 (22:15 +0000)] 
jython pool tests pass 100% [ticket:1444]

16 years agomerged -r6055:6064 of trunk
Mike Bayer [Tue, 16 Jun 2009 19:26:37 +0000 (19:26 +0000)] 
merged -r6055:6064 of trunk

16 years agoadded instant test runner
Mike Bayer [Sat, 13 Jun 2009 23:31:56 +0000 (23:31 +0000)] 
added instant test runner

16 years ago- converted TableSingleton to __new__ and scaled down other silliness.
Mike Bayer [Sat, 13 Jun 2009 23:15:40 +0000 (23:15 +0000)] 
- converted TableSingleton to __new__ and scaled down other silliness.
- doc gen fixes
- pushing the pep8 rock up the hill a few feet.

16 years agoenabled missing reflection tests
Mike Bayer [Sat, 13 Jun 2009 19:29:19 +0000 (19:29 +0000)] 
enabled missing reflection tests

16 years agomerged r6054 from trunk
Mike Bayer [Sat, 13 Jun 2009 03:39:27 +0000 (03:39 +0000)] 
merged r6054 from trunk

16 years agomerged the remainder of r6023 from trunk
Mike Bayer [Sat, 13 Jun 2009 03:37:59 +0000 (03:37 +0000)] 
merged the remainder of r6023 from trunk

16 years agopy3k fixes
Mike Bayer [Fri, 12 Jun 2009 16:56:19 +0000 (16:56 +0000)] 
py3k fixes

16 years agosome pg8000 + postgres fixes
Mike Bayer [Fri, 12 Jun 2009 16:09:35 +0000 (16:09 +0000)] 
some pg8000 + postgres fixes

16 years ago- merged -r6049:6050 of trunk, nose migration.
Mike Bayer [Thu, 11 Jun 2009 20:27:46 +0000 (20:27 +0000)] 
- merged -r6049:6050 of trunk, nose migration.
- added lib/sqlalchemy/test/util.py to keep "import gc" out of core

16 years agocmp from compat
Mike Bayer [Tue, 2 Jun 2009 22:34:40 +0000 (22:34 +0000)] 
cmp from compat

16 years agomerged -r5991:6018 of trunk, primarily removal of testing.ORMTest and fixtures.py
Mike Bayer [Tue, 2 Jun 2009 21:53:52 +0000 (21:53 +0000)] 
merged -r5991:6018 of trunk, primarily removal of testing.ORMTest and fixtures.py

16 years agofix 2.6ism
Philip Jenvey [Sun, 31 May 2009 23:20:35 +0000 (23:20 +0000)] 
fix 2.6ism

16 years agoinitial 3.0-only driver for py-postgresql. tests are maybe 60/40 at the moment.
Mike Bayer [Sun, 31 May 2009 22:47:50 +0000 (22:47 +0000)] 
initial 3.0-only driver for py-postgresql.   tests are maybe 60/40 at the moment.

16 years agofixes for MySQL
Mike Bayer [Sun, 31 May 2009 22:03:44 +0000 (22:03 +0000)] 
fixes for MySQL

16 years ago- some topological fixup to work around inconsistent string interning in py3k
Mike Bayer [Sun, 31 May 2009 21:41:20 +0000 (21:41 +0000)] 
- some topological fixup to work around inconsistent string interning in py3k
- pg8000 in py3k needs description_encoding, turn this back on, switch off for py3k sqlite

16 years ago- commenting SQLSoup out of the py3k tests for now
Mike Bayer [Sun, 31 May 2009 19:30:39 +0000 (19:30 +0000)] 
- commenting SQLSoup out of the py3k tests for now
- other py3k adjustments

16 years agoand one more
Mike Bayer [Sun, 31 May 2009 18:21:51 +0000 (18:21 +0000)] 
and one more

16 years agoits raise x from e
Mike Bayer [Sun, 31 May 2009 18:16:23 +0000 (18:16 +0000)] 
its raise x from e

16 years ago- added an "inline_ddl" flag to Constraint. this controls if DDL is emitted
Mike Bayer [Sun, 31 May 2009 16:33:00 +0000 (16:33 +0000)] 
- added an "inline_ddl" flag to Constraint.  this controls if DDL is emitted
from within CREATE TABLE, and is flipped off automatically when the item
is placed within an Add/DropConstraint object.
- the use_alter flag on ForeignKey is now a shortcut option for operations that
can be hand-constructed using the DDL() event system.  A side effect of this refactor
is that ForeignKeyConstraint objects with use_alter=True will *not* be emitted on
SQLite, which does not support ALTER for foreign keys.  This has no effect on SQLite's
behavior since SQLite does not actually honor FOREIGN KEY constraints.
- the "on" callable passed to DDL() needs to accept **kw arguments.
In the case of MetaData before/after create/drop, the list of
Table objects for which CREATE/DROP DDL is to be issued is passed
as the kw argument "tables".   This is necessary for metadata-level
DDL that is dependent on the presence of specific tables.
- the "metadata" argument is removed from DefaultGenerator and subclasses,
but remains locally present on Sequence, which is a standalone construct
in DDL.
- really trying to pare down usage of testing.mock_engine()

16 years agothe compiler works for types ! heh
Mike Bayer [Sun, 31 May 2009 14:56:56 +0000 (14:56 +0000)] 
the compiler works for types ! heh

16 years ago- lots of paring down and cleanup of schema / DDL. reworked
Mike Bayer [Sun, 31 May 2009 01:27:46 +0000 (01:27 +0000)] 
- lots of paring down and cleanup of schema / DDL.  reworked
all _CreateDropBase classes to extend from the same event
framework as DDL().   semi-support for dialect-conditional
Constraint objects, needs work.

16 years ago- repair were-never-working instrumentation tests
Mike Bayer [Sat, 30 May 2009 21:03:41 +0000 (21:03 +0000)] 
- repair were-never-working instrumentation tests
- use nicer py3k reraise style detailed in pep3109 (directly affects how the traceback is formatted vs. with_traceback())
- seriously considering writing regular tests for sqlsoup since this is going to be impossible to 2to3-ize

16 years agosome nextisms
Mike Bayer [Sat, 30 May 2009 19:56:08 +0000 (19:56 +0000)] 
some nextisms

16 years agoreverted a change which dates back to [changeset:5037] - there
Mike Bayer [Sat, 30 May 2009 19:38:08 +0000 (19:38 +0000)] 
reverted a change which dates back to [changeset:5037] - there
doesn't seem to be any way for an old style class to be in the `__subclasses__()`
collection of a new style class.  also fixes a 2to3 screwup
allowing test/orm/attributes.py to pass fully on py3k

16 years agoserializer
Mike Bayer [Sat, 30 May 2009 19:12:21 +0000 (19:12 +0000)] 
serializer

16 years agoorderinglist slice fixes
Mike Bayer [Sat, 30 May 2009 18:52:26 +0000 (18:52 +0000)] 
orderinglist slice fixes

16 years agothe light has been seen. all tests pass 2k + 3k + new tests
Mike Bayer [Sat, 30 May 2009 18:27:13 +0000 (18:27 +0000)] 
the light has been seen.   all tests pass 2k + 3k + new tests

16 years agofixes to __setitem__ in the list adapter to handle some slices that
Mike Bayer [Sat, 30 May 2009 17:13:13 +0000 (17:13 +0000)] 
fixes to __setitem__ in the list adapter to handle some slices that
usually go right to __setslice__

16 years ago- py3k stuff
Mike Bayer [Sat, 30 May 2009 16:22:53 +0000 (16:22 +0000)] 
- py3k stuff
- we don't need column_dict in construct_params now

16 years agouse util.threading
Mike Bayer [Sat, 30 May 2009 01:11:12 +0000 (01:11 +0000)] 
use util.threading

16 years ago- removed the connect() method of metadata,threadlocalmetadata
Mike Bayer [Sat, 30 May 2009 01:05:25 +0000 (01:05 +0000)] 
- removed the connect() method of metadata,threadlocalmetadata
- removed import of "thread" which is unused, is not "public" in py3k anyway

16 years agosqueezing out py3k fixes....sooo slowwww
Mike Bayer [Fri, 29 May 2009 23:27:16 +0000 (23:27 +0000)] 
squeezing out py3k fixes....sooo slowwww

16 years agomerged -r5987:5991 of trunk
Mike Bayer [Fri, 29 May 2009 21:57:15 +0000 (21:57 +0000)] 
merged -r5987:5991 of trunk

16 years agofix some tests, a py3k import
Mike Bayer [Thu, 28 May 2009 01:00:27 +0000 (01:00 +0000)] 
fix some tests, a py3k import

16 years agooops, checked in a pdb
Mike Bayer [Thu, 28 May 2009 00:49:31 +0000 (00:49 +0000)] 
oops, checked in a pdb

16 years agomerged -r5974:5987 of trunk
Mike Bayer [Thu, 28 May 2009 00:39:12 +0000 (00:39 +0000)] 
merged -r5974:5987 of trunk

16 years agofixes
Mike Bayer [Wed, 27 May 2009 00:22:52 +0000 (00:22 +0000)] 
fixes

16 years agoschema, reflection, and type refinements. in particular the default precision/scale...
Mike Bayer [Tue, 26 May 2009 22:31:29 +0000 (22:31 +0000)] 
schema, reflection, and type refinements.  in particular the default precision/scale args are
removed from Numeric/Float.

16 years agomost ORM tests passing in py3.1 with these changes
Mike Bayer [Tue, 26 May 2009 17:21:41 +0000 (17:21 +0000)] 
most ORM tests passing in py3.1 with these changes

16 years agomove StringIO to its own line for 2to3 compat
Mike Bayer [Tue, 26 May 2009 17:05:36 +0000 (17:05 +0000)] 
move StringIO to its own line  for 2to3 compat

16 years ago- pg8000 fixes
Mike Bayer [Tue, 26 May 2009 01:01:25 +0000 (01:01 +0000)] 
- pg8000 fixes
- removed hardcoded TIMESTAMP func, deprecated in 0.5.4p2

16 years agomerged r5976
Mike Bayer [Mon, 25 May 2009 15:29:18 +0000 (15:29 +0000)] 
merged r5976

16 years agomerge -r5936:5974 of trunk
Mike Bayer [Mon, 25 May 2009 15:20:44 +0000 (15:20 +0000)] 
merge -r5936:5974 of trunk

16 years agorefactor
Philip Jenvey [Sun, 3 May 2009 00:54:06 +0000 (00:54 +0000)] 
refactor

16 years agofix _sort not always using the node's id as its key
Philip Jenvey [Sun, 3 May 2009 00:05:28 +0000 (00:05 +0000)] 
fix _sort not always using the node's id as its key
fixes #1380

16 years agomerge r5939 from trunk
Mike Bayer [Sat, 2 May 2009 17:46:21 +0000 (17:46 +0000)] 
merge r5939 from trunk

16 years agomerged -r 5869:5936 of trunk, including dialect changes re: extract()
Mike Bayer [Sat, 2 May 2009 15:48:32 +0000 (15:48 +0000)] 
merged -r 5869:5936 of trunk, including dialect changes re: extract()

16 years agoexplicitly gc_collect weakref tests
Philip Jenvey [Fri, 1 May 2009 06:36:36 +0000 (06:36 +0000)] 
explicitly gc_collect weakref tests
fixes #1382

16 years agomerge r5895 from trunk
Philip Jenvey [Thu, 30 Apr 2009 19:43:32 +0000 (19:43 +0000)] 
merge r5895 from trunk

16 years agofix mssql cursor closed issue on reflection
Randall Smith [Thu, 30 Apr 2009 04:23:20 +0000 (04:23 +0000)] 
fix mssql cursor closed issue on reflection

16 years agopass cache to _prepare_reflection_args
Randall Smith [Wed, 29 Apr 2009 19:29:59 +0000 (19:29 +0000)] 
pass cache to _prepare_reflection_args

16 years agocache _prepare_reflection_args
Randall Smith [Wed, 29 Apr 2009 04:17:59 +0000 (04:17 +0000)] 
cache _prepare_reflection_args

16 years agoremoved attrs key from get_columns return value
Randall Smith [Sat, 25 Apr 2009 18:58:43 +0000 (18:58 +0000)] 
removed attrs key from get_columns return value

16 years agoremoved unecessary oracle specific logic
Randall Smith [Sat, 25 Apr 2009 18:41:11 +0000 (18:41 +0000)] 
removed unecessary oracle specific logic

16 years agomoved reflecttable to inspector for mssql
Randall Smith [Sat, 25 Apr 2009 07:35:03 +0000 (07:35 +0000)] 
moved reflecttable to inspector for mssql

16 years agoremoved the connection_memoize stuff.
Michael Trier [Fri, 24 Apr 2009 02:31:31 +0000 (02:31 +0000)] 
removed the connection_memoize stuff.

16 years agoraise NoSuchTableError in reflecttable
Randall Smith [Thu, 23 Apr 2009 02:46:19 +0000 (02:46 +0000)] 
raise NoSuchTableError in reflecttable

16 years agoCorrected mysql import for CLIENT_FLAGS. Added commented out memoize decorators that...
Michael Trier [Thu, 23 Apr 2009 01:38:09 +0000 (01:38 +0000)] 
Corrected mysql import for CLIENT_FLAGS. Added commented out memoize decorators that will not work without a ProxyConnection.

16 years agoCorrected mysql version info check.
Michael Trier [Wed, 22 Apr 2009 13:23:21 +0000 (13:23 +0000)] 
Corrected mysql version info check.

16 years agomoved reflecttable to inspector for postgresql, oracle, sqlite and mysql
Randall Smith [Wed, 22 Apr 2009 07:17:34 +0000 (07:17 +0000)] 
moved reflecttable to inspector for postgresql, oracle, sqlite and mysql

16 years agoCorrected exception references in Postgres dialect.
Michael Trier [Sun, 19 Apr 2009 21:23:39 +0000 (21:23 +0000)] 
Corrected exception references in Postgres dialect.

16 years agostandardized tests on test_schema and test_schema_2.
Michael Trier [Sun, 19 Apr 2009 21:23:36 +0000 (21:23 +0000)] 
standardized tests on test_schema and test_schema_2.

16 years agoFixed function call counts for 2.5 / 2.6
Michael Trier [Sun, 19 Apr 2009 21:23:32 +0000 (21:23 +0000)] 
Fixed function call counts for 2.5 / 2.6

16 years agoTypo in docstring
Lele Gaifax [Wed, 15 Apr 2009 09:34:03 +0000 (09:34 +0000)] 
Typo in docstring

16 years agoWhitespace normalization, adjust some docstrings to reST/Sphinx conventions
Lele Gaifax [Wed, 15 Apr 2009 09:30:10 +0000 (09:30 +0000)] 
Whitespace normalization, adjust some docstrings to reST/Sphinx conventions

16 years agoReverting property workaround
Jason Kirtland [Wed, 1 Apr 2009 02:04:10 +0000 (02:04 +0000)] 
Reverting property workaround

16 years agoMigrated gc.collect hack to testlib.compat
Jason Kirtland [Wed, 1 Apr 2009 01:52:16 +0000 (01:52 +0000)] 
Migrated gc.collect hack to testlib.compat

16 years agoPatch-o
Jason Kirtland [Wed, 1 Apr 2009 01:34:49 +0000 (01:34 +0000)] 
Patch-o

16 years agoUpdated $py.class ignores
Jason Kirtland [Tue, 31 Mar 2009 21:59:48 +0000 (21:59 +0000)] 
Updated $py.class ignores

16 years agoAnd added this one
Jason Kirtland [Tue, 31 Mar 2009 21:57:23 +0000 (21:57 +0000)] 
And added this one

16 years agoAdding missing sqlite portion of alowry's patch from r5881
Jason Kirtland [Tue, 31 Mar 2009 21:46:17 +0000 (21:46 +0000)] 
Adding missing sqlite portion of alowry's patch from r5881

16 years agoSpecial gc.collect() tickling for Jython patch from pjenvey
Jason Kirtland [Tue, 31 Mar 2009 21:35:44 +0000 (21:35 +0000)] 
Special gc.collect() tickling for Jython patch from pjenvey

16 years agoa myriad of close_first calls to get sql.alltests to run
Mike Bayer [Tue, 31 Mar 2009 20:54:10 +0000 (20:54 +0000)] 
a myriad of close_first calls to get sql.alltests to run

16 years agothe return of --mockpool, mocking you and your crappy code that doesn't clean up...
Mike Bayer [Tue, 31 Mar 2009 20:16:38 +0000 (20:16 +0000)] 
the return of --mockpool, mocking you and your crappy code that doesn't clean up after itself

16 years agoMinor changes to adodbapi.
Michael Trier [Tue, 31 Mar 2009 19:54:01 +0000 (19:54 +0000)] 
Minor changes to adodbapi.

16 years ago- Added support for create_engine(isolation_level=...); postgres &
Jason Kirtland [Tue, 31 Mar 2009 19:49:13 +0000 (19:49 +0000)] 
- Added support for create_engine(isolation_level=...); postgres &
  sqlite initially [ticket:443]
- Dialects gained visit_pool
- Pools gained a first_connect event
Patch from Adam Lowry.  Thank you Adam!

16 years agoCorrected MSSQL support for 0.6.
Michael Trier [Tue, 31 Mar 2009 19:29:27 +0000 (19:29 +0000)] 
Corrected MSSQL support for 0.6.

16 years agoa pared down ext.compiler with minimal boilerplate.
Mike Bayer [Tue, 31 Mar 2009 18:57:22 +0000 (18:57 +0000)] 
a pared down ext.compiler with minimal boilerplate.

16 years agorevert back to the 0.5 way of calling DBAPIError.instance(), but add the tback as...
Mike Bayer [Tue, 31 Mar 2009 17:55:03 +0000 (17:55 +0000)] 
revert back to the 0.5 way of calling DBAPIError.instance(), but add the tback as the 3rd argument.  didn't realize this
usage.  sorry empty !

16 years ago- rollback everything before dropping tables. PG + jython is a rough combo
Mike Bayer [Tue, 31 Mar 2009 17:00:02 +0000 (17:00 +0000)] 
- rollback everything before dropping tables.   PG + jython is a rough combo
- zxJDBC totally not returning rowcounts correctly
- some dict ordering for jython

16 years agoFixed up the tests for the new style exception instance_cls.
Michael Trier [Tue, 31 Mar 2009 16:20:28 +0000 (16:20 +0000)] 
Fixed up the tests for the new style exception instance_cls.

16 years agoCorrections to 0.6 to fix mssql problems.
Michael Trier [Tue, 31 Mar 2009 07:14:44 +0000 (07:14 +0000)] 
Corrections to 0.6 to fix mssql problems.

16 years ago- jython support. works OK for expressions, there's a major weakref bug in ORM tho
Mike Bayer [Mon, 30 Mar 2009 22:32:36 +0000 (22:32 +0000)] 
- jython support.  works OK for expressions, there's a major weakref bug in ORM tho
- reraises of exceptions pass along the original stack trace

16 years agomerged -r5841:5869 of trunk, including a local information_schema.py for MSSQL
Mike Bayer [Sun, 29 Mar 2009 21:40:01 +0000 (21:40 +0000)] 
merged -r5841:5869 of trunk, including a local information_schema.py for MSSQL

16 years ago- connection initialize moves to a connection pool event [ticket:1340]
Mike Bayer [Sat, 21 Mar 2009 19:34:45 +0000 (19:34 +0000)] 
- connection initialize moves to a connection pool event [ticket:1340]
- sqlite doesn't support schemas.  not sure if some versions do, but marking those as unsupported for now.
- added a testing.requires callable for schema support.
- standardized the "extra schema" name for unit tests as "test_schema" and "test_schema_2".
- sqlite needs description_encoding (was some other version of pysqlite tested here ?)
- other test fixes.

16 years agoSet the set in __builtins__ check to Py2-only, set is always available in Py3
Arc Riley [Wed, 18 Mar 2009 00:13:39 +0000 (00:13 +0000)] 
Set the set in __builtins__ check to Py2-only, set is always available in Py3
I believe some other test may be overriding __builtins__ to be a dict instead of a module only on Py3, but this is the easiest fix.

16 years agoRemoved __builtin__ and buffer hack for MySQLdb for Py3
Arc Riley [Tue, 17 Mar 2009 23:37:21 +0000 (23:37 +0000)] 
Removed __builtin__ and buffer hack for MySQLdb for Py3

16 years agoupdated documentation
Randall Smith [Tue, 17 Mar 2009 22:04:15 +0000 (22:04 +0000)] 
updated documentation

16 years agochanged file() to open() for better portability
Arc Riley [Tue, 17 Mar 2009 18:29:38 +0000 (18:29 +0000)] 
changed file() to open() for better portability

16 years agominor updates to documentation strings
Randall Smith [Tue, 17 Mar 2009 04:11:07 +0000 (04:11 +0000)] 
minor updates to documentation strings

16 years agomoved tests in test/reflection.py into test/engine/reflection.py
Randall Smith [Tue, 17 Mar 2009 03:01:40 +0000 (03:01 +0000)] 
moved tests in test/reflection.py into test/engine/reflection.py

16 years agorefactored reflecttable
Randall Smith [Sun, 15 Mar 2009 05:30:24 +0000 (05:30 +0000)] 
refactored reflecttable

16 years ago- merged -r5797:5841 of trunk, including ported changes to MSSQL, Postgres
Mike Bayer [Sun, 15 Mar 2009 03:41:03 +0000 (03:41 +0000)] 
- merged -r5797:5841 of trunk, including ported changes to MSSQL, Postgres
- got server_version_info attribute on sqlite, postgres, needs work