]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
16 years agomerged -r6172:6204 of trunk
Mike Bayer [Sun, 26 Jul 2009 18:58:54 +0000 (18:58 +0000)] 
merged -r6172:6204 of trunk

16 years agopreexecute_pk_sequences indicates run the "default" separately to get its value
Mike Bayer [Sun, 26 Jul 2009 18:39:31 +0000 (18:39 +0000)] 
preexecute_pk_sequences indicates run the "default" separately to get its value

16 years agoo move mysqldb's DecimalType behavior out of base
Philip Jenvey [Sat, 25 Jul 2009 20:20:26 +0000 (20:20 +0000)] 
o move mysqldb's DecimalType behavior out of base
o add a BIT result processor for zxjdbc

16 years agofix the paramstyle check
Philip Jenvey [Sat, 25 Jul 2009 19:35:14 +0000 (19:35 +0000)] 
fix the paramstyle check

16 years agoreuse NoneType
Philip Jenvey [Sat, 25 Jul 2009 19:27:34 +0000 (19:27 +0000)] 
reuse NoneType

16 years agorevert r6184, toggle the jdbc driver's yearIsDateType option instead
Philip Jenvey [Fri, 24 Jul 2009 23:34:25 +0000 (23:34 +0000)] 
revert r6184, toggle the jdbc driver's yearIsDateType option instead

16 years agomark as failing because zxjdbc relies on SELECT LAST_INSERT_ID()
Philip Jenvey [Fri, 24 Jul 2009 23:06:07 +0000 (23:06 +0000)] 
mark as failing because zxjdbc relies on SELECT LAST_INSERT_ID()

16 years agodisable mysqldb's Time type conversion on zxjdb
Philip Jenvey [Fri, 24 Jul 2009 04:53:05 +0000 (04:53 +0000)] 
disable mysqldb's Time type conversion on zxjdb

16 years agoaccommodate zxjdbc's datetime result
Philip Jenvey [Fri, 24 Jul 2009 04:51:55 +0000 (04:51 +0000)] 
accommodate zxjdbc's datetime result

16 years agograb lastrowid on a different cursor so we don't munge the original's state
Philip Jenvey [Fri, 24 Jul 2009 04:12:10 +0000 (04:12 +0000)] 
grab lastrowid on a different cursor so we don't munge the original's state

16 years agoadjust select to not assume set order
Philip Jenvey [Fri, 24 Jul 2009 01:46:12 +0000 (01:46 +0000)] 
adjust select to not assume set order

16 years agoclose cursors
Philip Jenvey [Thu, 23 Jul 2009 05:11:19 +0000 (05:11 +0000)] 
close cursors

16 years agothese are unnecessary
Philip Jenvey [Thu, 23 Jul 2009 04:58:06 +0000 (04:58 +0000)] 
these are unnecessary

16 years agomake Table doesn't exist detection portable
Philip Jenvey [Thu, 23 Jul 2009 04:49:25 +0000 (04:49 +0000)] 
make Table doesn't exist detection portable

16 years agomysql+zxjdbc guards/allowances
Philip Jenvey [Thu, 23 Jul 2009 04:48:25 +0000 (04:48 +0000)] 
mysql+zxjdbc guards/allowances

16 years agoo close connections to avoid maxing out the pool on Jython
Philip Jenvey [Thu, 23 Jul 2009 04:47:39 +0000 (04:47 +0000)] 
o close connections to avoid maxing out the pool on Jython
o make test_charset_caching/test_num/test_expression more portable

16 years agoadd/strengthen guards for concurrent GC
Philip Jenvey [Thu, 23 Jul 2009 01:08:17 +0000 (01:08 +0000)] 
add/strengthen guards for concurrent GC

16 years agomerged r6174 of trunk
Mike Bayer [Wed, 22 Jul 2009 20:41:58 +0000 (20:41 +0000)] 
merged r6174 of trunk

16 years agomerged -r6134:6172 of trunk
Mike Bayer [Wed, 22 Jul 2009 20:33:40 +0000 (20:33 +0000)] 
merged -r6134:6172 of trunk

16 years agoapply the unique __hash__ workaround to all ClauseElements, and only apply it on...
Philip Jenvey [Wed, 22 Jul 2009 02:35:15 +0000 (02:35 +0000)] 
apply the unique __hash__ workaround to all ClauseElements, and only apply it on Jython
fixes #1475

16 years agodefer the heavier plugin setup until begin() when the plugin is definitely
Philip Jenvey [Wed, 22 Jul 2009 02:17:26 +0000 (02:17 +0000)] 
defer the heavier plugin setup until begin() when the plugin is definitely
enabled

16 years agorevert the unicode check from r6162, zxjdbc just needs the correct
Philip Jenvey [Wed, 22 Jul 2009 00:43:42 +0000 (00:43 +0000)] 
revert the unicode check from r6162, zxjdbc just needs the correct
description_encoding
fixes #1479

16 years agoreally close connections
Philip Jenvey [Tue, 21 Jul 2009 23:22:20 +0000 (23:22 +0000)] 
really close connections

16 years agoclose connections
Philip Jenvey [Tue, 21 Jul 2009 21:07:04 +0000 (21:07 +0000)] 
close connections

16 years agoadd fails_if for lack of supports_sane_rowcount support
Philip Jenvey [Tue, 21 Jul 2009 05:58:20 +0000 (05:58 +0000)] 
add fails_if for lack of supports_sane_rowcount support

16 years agoexpunge the session again so we're not recycling anything, for Jython
Philip Jenvey [Tue, 21 Jul 2009 05:26:36 +0000 (05:26 +0000)] 
expunge the session again so we're not recycling anything, for Jython

16 years agorefactor to handle lazy loaded columns raising UnboundExecutionErrors. fixes
Philip Jenvey [Tue, 21 Jul 2009 05:26:26 +0000 (05:26 +0000)] 
refactor to handle lazy loaded columns raising UnboundExecutionErrors. fixes
orm.test_merge test_no_load_with_backrefs on Jython, CPython avoided this due
to the luck of dict ordering

16 years agouse supports_unicode_statements on Jython trunk and handle unicode cursor
Philip Jenvey [Tue, 21 Jul 2009 03:10:53 +0000 (03:10 +0000)] 
use supports_unicode_statements on Jython trunk and handle unicode cursor
description names from zxJDBC

16 years agodon't rely on unicode repr() output
Philip Jenvey [Tue, 21 Jul 2009 01:14:56 +0000 (01:14 +0000)] 
don't rely on unicode repr() output

16 years agodetect disconnections on closed cursors
Philip Jenvey [Tue, 21 Jul 2009 01:04:26 +0000 (01:04 +0000)] 
detect disconnections on closed cursors

16 years agoensure _BindParamClause hash codes are unique on Jython
Philip Jenvey [Tue, 21 Jul 2009 00:47:03 +0000 (00:47 +0000)] 
ensure _BindParamClause hash codes are unique on Jython
fixes #1475

16 years agoo we don't need to escape % in text on zxjdbc
Philip Jenvey [Mon, 20 Jul 2009 05:02:32 +0000 (05:02 +0000)] 
o we don't need to escape % in text on zxjdbc
o don't assume ProgrammingError on zxjdbc, hopefully zxjdbc won't use plain
Error so much one day

16 years agoo don't assume exact insertion order in test_polymorph2.testjointo
Philip Jenvey [Sun, 19 Jul 2009 21:12:12 +0000 (21:12 +0000)] 
o don't assume exact insertion order in test_polymorph2.testjointo
o zxjdbc fails like pg8000 on test_query.test_values_with_boolean_selectspn

16 years agoremoved disabled method
Mike Bayer [Sun, 19 Jul 2009 20:13:17 +0000 (20:13 +0000)] 
removed disabled method

16 years agoone more neg to positive change
Mike Bayer [Sun, 19 Jul 2009 20:12:24 +0000 (20:12 +0000)] 
one more neg to positive change

16 years ago- the "dont_load=True" flag on Session.merge() is deprecated and is now
Mike Bayer [Sun, 19 Jul 2009 20:06:07 +0000 (20:06 +0000)] 
- the "dont_load=True" flag on Session.merge() is deprecated and is now
"load=False".
- changed two internal "no_"/"dont_" arguments to positive names

16 years agoassert -> eq_
Philip Jenvey [Sun, 19 Jul 2009 07:03:16 +0000 (07:03 +0000)] 
assert -> eq_

16 years agoskip sqlite tests when it's not available
Philip Jenvey [Sun, 19 Jul 2009 06:36:20 +0000 (06:36 +0000)] 
skip sqlite tests when it's not available

16 years agodisable test_prune on jython for now:
Philip Jenvey [Sun, 19 Jul 2009 06:29:43 +0000 (06:29 +0000)] 
disable test_prune on jython for now:
http://www.sqlalchemy.org/trac/ticket/1473

16 years agoo handle array.ArrayTypes for Binary on jython
Philip Jenvey [Sun, 19 Jul 2009 05:39:39 +0000 (05:39 +0000)] 
o handle array.ArrayTypes for Binary on jython
o tag zxjdbc as lacking datetime microsecond support

16 years agogenerate the RETURNING col lists the same was as visit_select() does (except for...
Mike Bayer [Sun, 19 Jul 2009 04:59:18 +0000 (04:59 +0000)] 
generate the RETURNING col lists the same was as visit_select() does (except for oracle).
mssql gets extra label stuff to deal with column adaption (not sure if column adaption should
blow away labels like that...).   fixes potential column targeting issues on all platforms
+ fixes mssql failures

16 years agofixed [ticket:1471]
Mike Bayer [Sun, 19 Jul 2009 04:06:39 +0000 (04:06 +0000)] 
fixed [ticket:1471]

16 years agoskip interval test_roundtrip on zxjdbc for now
Philip Jenvey [Sun, 19 Jul 2009 02:52:40 +0000 (02:52 +0000)] 
skip interval test_roundtrip on zxjdbc for now

16 years ago- returning() support is native to insert(), update(), delete(). Implementations
Mike Bayer [Sun, 19 Jul 2009 02:20:18 +0000 (02:20 +0000)] 
- returning() support is native to insert(), update(), delete().  Implementations
of varying levels of functionality exist for Postgresql, Firebird, MSSQL and
Oracle.
- MSSQL still has a few glitches that need to be resolved via label/column targeting logic.
- its looking like time to take another look at positional column targeting overall.

16 years agoo disable array/pyformat/positional tests on zxjdbc
Philip Jenvey [Sun, 19 Jul 2009 02:05:14 +0000 (02:05 +0000)] 
o disable array/pyformat/positional tests on zxjdbc
o zxjdbc execute doesn't like None params

16 years agothis has been already moved to dialect/test_postgresql
Philip Jenvey [Sun, 19 Jul 2009 02:03:01 +0000 (02:03 +0000)] 
this has been already moved to dialect/test_postgresql

16 years agoreuse the simple mock_dbapi
Philip Jenvey [Sun, 19 Jul 2009 00:45:06 +0000 (00:45 +0000)] 
reuse the simple mock_dbapi

16 years agodon't assume sqlite is always available
Philip Jenvey [Sun, 19 Jul 2009 00:44:11 +0000 (00:44 +0000)] 
don't assume sqlite is always available

16 years agolong from zxjdbc is also a reasonable result
Philip Jenvey [Sun, 19 Jul 2009 00:06:45 +0000 (00:06 +0000)] 
long from zxjdbc is also a reasonable result

16 years agotemp. workaround for deadlock on Jython
Philip Jenvey [Sun, 19 Jul 2009 00:06:04 +0000 (00:06 +0000)] 
temp. workaround for deadlock on Jython

16 years agozxjdbc doesn't like None params here
Philip Jenvey [Sat, 18 Jul 2009 23:41:41 +0000 (23:41 +0000)] 
zxjdbc doesn't like None params here

16 years agofix Select's _copy_internals not maintaining _froms' order
Philip Jenvey [Sat, 18 Jul 2009 23:15:55 +0000 (23:15 +0000)] 
fix Select's _copy_internals not maintaining _froms' order

16 years agomore doc stuff.
Mike Bayer [Sat, 18 Jul 2009 22:01:33 +0000 (22:01 +0000)] 
more doc stuff.

16 years ago- documentation crap
Mike Bayer [Sat, 18 Jul 2009 21:53:38 +0000 (21:53 +0000)] 
- documentation crap
- we're probably going to want ez_setup.py around for now
- rubber malleted the access dialect to not look for old compiler classes

16 years agomerged -r6112:6134 of trunk
Mike Bayer [Sat, 18 Jul 2009 21:01:32 +0000 (21:01 +0000)] 
merged -r6112:6134 of trunk

16 years agoskip profiling tests on Jython and platforms that lack hotshot/cProfile
Philip Jenvey [Fri, 17 Jul 2009 05:35:02 +0000 (05:35 +0000)] 
skip profiling tests on Jython and platforms that lack hotshot/cProfile

16 years agomake our test skips recognizable by nose
Philip Jenvey [Fri, 17 Jul 2009 02:50:39 +0000 (02:50 +0000)] 
make our test skips recognizable by nose

16 years agoclose all connections
Philip Jenvey [Fri, 17 Jul 2009 01:25:12 +0000 (01:25 +0000)] 
close all connections

16 years agoskip deadlocking test_two_phase_recover on mysql+zxjdbc, ensure cursors are
Philip Jenvey [Thu, 16 Jul 2009 23:02:00 +0000 (23:02 +0000)] 
skip deadlocking test_two_phase_recover on mysql+zxjdbc, ensure cursors are
closed

16 years agoensure cursors are closed
Philip Jenvey [Thu, 16 Jul 2009 22:56:19 +0000 (22:56 +0000)] 
ensure cursors are closed

16 years agoensure cursors are closed, various fetchone() -> first()
Philip Jenvey [Thu, 16 Jul 2009 22:29:26 +0000 (22:29 +0000)] 
ensure cursors are closed, various fetchone() -> first()
patch from Demi-god

16 years agocorrect the zxJDBC disconnect matching
Philip Jenvey [Thu, 16 Jul 2009 01:54:22 +0000 (01:54 +0000)] 
correct the zxJDBC disconnect matching

16 years agosmall change
Philip Jenvey [Thu, 16 Jul 2009 01:15:31 +0000 (01:15 +0000)] 
small change

16 years agodisable two phase transaction support on postgresql+zxjdbc, the jdbc driver
Philip Jenvey [Thu, 16 Jul 2009 01:15:01 +0000 (01:15 +0000)] 
disable two phase transaction support on postgresql+zxjdbc, the jdbc driver
can't handle it without some more work

16 years agouse locale neutral ISO date format
Philip Jenvey [Wed, 15 Jul 2009 20:58:01 +0000 (20:58 +0000)] 
use locale neutral ISO date format
patch from Demi-God

16 years ago- fix driver imports
Mike Bayer [Wed, 15 Jul 2009 18:48:10 +0000 (18:48 +0000)] 
- fix driver imports
- update info on special schema names in unittest README

16 years agobeefed up the description of dialects
Mike Bayer [Mon, 13 Jul 2009 22:53:37 +0000 (22:53 +0000)] 
beefed up the description of dialects

16 years agorenamed "postgres" to "postgresql", "Postgres" to "PostgreSQL". since
Mike Bayer [Mon, 13 Jul 2009 00:46:44 +0000 (00:46 +0000)] 
renamed "postgres" to "postgresql", "Postgres" to "PostgreSQL".  since
that's been the thing's name since 1996 or so.  backwards compatibility
with the old name should be more or less complete.

16 years agomerged -r6082:6112 of trunk
Mike Bayer [Sun, 12 Jul 2009 23:45:01 +0000 (23:45 +0000)] 
merged -r6082:6112 of trunk

16 years agoImplements the boolean type for FB
Lele Gaifax [Sun, 12 Jul 2009 14:08:52 +0000 (14:08 +0000)] 
Implements the boolean type for FB
Also, on reflection restore the heuristic needed to find the sequence linked to the PK.

16 years agoUpgrade a few FB specific tests
Lele Gaifax [Sun, 12 Jul 2009 13:50:02 +0000 (13:50 +0000)] 
Upgrade a few FB specific tests

16 years agoWhitespace normalization
Lele Gaifax [Sun, 12 Jul 2009 08:22:13 +0000 (08:22 +0000)] 
Whitespace normalization

16 years agobah
Mike Bayer [Sun, 12 Jul 2009 01:38:33 +0000 (01:38 +0000)] 
bah

16 years agoFB uses AS for modern dialect
Mike Bayer [Sun, 12 Jul 2009 01:37:18 +0000 (01:37 +0000)] 
FB uses AS for modern dialect

16 years ago- firebird support. reflection works fully, overall test success in the 75% range...
Mike Bayer [Sun, 12 Jul 2009 01:23:03 +0000 (01:23 +0000)] 
- firebird support.  reflection works fully, overall test success in the 75% range approx
- oracle and firebird now normalize column names to SQLA "lowercase" for result.keys()
allowing consistent identifier name visibility on the client side.

16 years ago- oracle fixes
Mike Bayer [Sat, 11 Jul 2009 18:58:10 +0000 (18:58 +0000)] 
- oracle fixes
- upon further consideration it seems appropriate that reflection would
coerce all "default" values into text(), since this represents a DDL expression
straight from the DB
- adjustments to mysql to accommodate that
- for some reason zoomark dropped 300 calls in create_tables.  investigation pending

16 years agocontinued strictness/documentation of the type system
Mike Bayer [Wed, 8 Jul 2009 21:10:37 +0000 (21:10 +0000)] 
continued strictness/documentation of the type system

16 years ago- type renaming extravaganza
Mike Bayer [Wed, 8 Jul 2009 02:17:18 +0000 (02:17 +0000)] 
- type renaming extravaganza
- changed the contract a bit on reflection.cache

16 years ago- start moving get_default_schema_name to an initialized var
Mike Bayer [Mon, 6 Jul 2009 00:18:57 +0000 (00:18 +0000)] 
- start moving get_default_schema_name to an initialized var
- fix up MSSQL foreign key reflection ala oracle

16 years agouse NVARCHAR/NTEXT for unicode...
Mike Bayer [Sun, 5 Jul 2009 23:41:43 +0000 (23:41 +0000)] 
use NVARCHAR/NTEXT for unicode...

16 years ago- a new type dialect convention starting out in the PG dialect.
Mike Bayer [Sun, 5 Jul 2009 23:12:44 +0000 (23:12 +0000)] 
- a new type dialect convention starting out in the PG dialect.
- support for MSSQL/PyODBC/FreeTDS on a mac.  Win32 on deck..

16 years agoetc
Mike Bayer [Sun, 5 Jul 2009 16:01:49 +0000 (16:01 +0000)] 
etc

16 years ago100% of tests passed. there are still many order_by()'s needed since oracle is...
Mike Bayer [Sun, 5 Jul 2009 16:01:19 +0000 (16:01 +0000)] 
100% of tests passed.   there are still many order_by()'s needed since oracle is particularly random about this.

16 years agotest tweaks
Mike Bayer [Sun, 5 Jul 2009 15:19:17 +0000 (15:19 +0000)] 
test tweaks

16 years agothis should be just about 100% coverage
Mike Bayer [Sun, 5 Jul 2009 00:18:21 +0000 (00:18 +0000)] 
this should be just about 100% coverage

16 years agomore test fixes
Mike Bayer [Sat, 4 Jul 2009 17:38:03 +0000 (17:38 +0000)] 
more test fixes

16 years ago- brought oracle reflection into the 21st century
Mike Bayer [Sat, 4 Jul 2009 16:51:42 +0000 (16:51 +0000)] 
- brought oracle reflection into the 21st century
- some more test fixes

16 years ago- many more oracle tests pass
Mike Bayer [Sat, 4 Jul 2009 00:32:37 +0000 (00:32 +0000)] 
- many more oracle tests pass
- added "CASCADE CONSTRAINTS" option to DropTable - may
use it in drop_all() for supported DBs
- detected a cx_oracle bug whereby setinputsizes(cx_oracle.STRING)
in conjunction with unicode/executemany fails, added a workaround

16 years agofixed a nasty import hack and removed AbstractType.get_search_list().
Mike Bayer [Fri, 3 Jul 2009 18:42:41 +0000 (18:42 +0000)] 
fixed a nasty import hack and removed AbstractType.get_search_list().

16 years agoall sql + engine + reflection tests passing for oracle
Mike Bayer [Fri, 3 Jul 2009 18:20:45 +0000 (18:20 +0000)] 
all sql + engine + reflection tests passing for oracle

16 years agomerge -r6064:6082 of 0.5 trunk
Mike Bayer [Fri, 3 Jul 2009 16:05:55 +0000 (16:05 +0000)] 
merge -r6064:6082 of 0.5 trunk

16 years agofix MySQL drop constraint formats. test coverage needed.
Mike Bayer [Sun, 28 Jun 2009 23:13:12 +0000 (23:13 +0000)] 
fix MySQL drop constraint formats.  test coverage needed.

16 years agoadd some goodies to help migrate
Mike Bayer [Sun, 28 Jun 2009 22:46:08 +0000 (22:46 +0000)] 
add some goodies to help migrate

16 years agoColumn calls _set_parent() on child items within the constructor, so that the Column...
Mike Bayer [Sun, 28 Jun 2009 20:31:01 +0000 (20:31 +0000)] 
Column calls _set_parent() on child items within the constructor, so that the Column is easily
navigable before table attachment.  helps migrate.

16 years agomove ident regex to memoized
Mike Bayer [Sun, 28 Jun 2009 20:21:24 +0000 (20:21 +0000)] 
move ident regex to memoized

16 years agofail only on postgres+zxjdbc, the other dialects are covered
Philip Jenvey [Fri, 26 Jun 2009 00:48:58 +0000 (00:48 +0000)] 
fail only on postgres+zxjdbc, the other dialects are covered

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