]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
15 years ago- query.get() now returns None if queried for an identifier
Mike Bayer [Sat, 13 Mar 2010 17:28:50 +0000 (12:28 -0500)] 
- query.get() now returns None if queried for an identifier
that is present in the identity map with a different class
than the one requested, i.e. when using polymorphic loading.
[ticket:1727]

15 years agomerge tip
Mike Bayer [Sat, 13 Mar 2010 16:52:50 +0000 (11:52 -0500)] 
merge tip

15 years agofix the timeout test once and for all
Mike Bayer [Sat, 13 Mar 2010 16:52:17 +0000 (11:52 -0500)] 
fix the timeout test once and for all

15 years agotweak to take advantage of returning support in executemany
Philip Jenvey [Sat, 13 Mar 2010 03:01:59 +0000 (19:01 -0800)] 
tweak to take advantage of returning support in executemany

15 years agodisable interval tests on oracle+zxjdbc for now, and also test_fk_nonpassive
Philip Jenvey [Sat, 13 Mar 2010 01:50:33 +0000 (17:50 -0800)] 
disable interval tests on oracle+zxjdbc for now, and also test_fk_nonpassive

15 years agofix extending of a tuple
Philip Jenvey [Sat, 13 Mar 2010 01:19:07 +0000 (17:19 -0800)] 
fix extending of a tuple

15 years agomove the initial connect out of the profile zone so we don't get a method call hit...
Mike Bayer [Sat, 13 Mar 2010 00:57:06 +0000 (19:57 -0500)] 
move the initial connect out of the profile zone so we don't get a method call hit on that

15 years agofurther refinement
Mike Bayer [Fri, 12 Mar 2010 23:45:53 +0000 (23:45 +0000)] 
further refinement

15 years agomerging master...
Mike Bayer [Fri, 12 Mar 2010 23:23:44 +0000 (23:23 +0000)] 
merging master...

15 years agoconsolidate unicode/CLOB handling
Mike Bayer [Fri, 12 Mar 2010 23:22:20 +0000 (23:22 +0000)] 
consolidate unicode/CLOB handling

15 years agoadjust to allow mock DBAPIs
Mike Bayer [Fri, 12 Mar 2010 21:49:32 +0000 (16:49 -0500)] 
adjust to allow mock DBAPIs

15 years agooursql doesn't like the cursor being reused without fetch being finished
Mike Bayer [Fri, 12 Mar 2010 21:19:41 +0000 (16:19 -0500)] 
oursql doesn't like the cursor being reused without fetch being finished

15 years agomerge from oracle WITH_UNICODE branch
Mike Bayer [Fri, 12 Mar 2010 21:07:03 +0000 (21:07 +0000)] 
merge from oracle WITH_UNICODE branch

15 years ago- Added preliminary support for Oracle's WITH_UNICODE
Mike Bayer [Fri, 12 Mar 2010 21:05:53 +0000 (21:05 +0000)] 
- Added preliminary support for Oracle's WITH_UNICODE
mode.  At the very least this establishes initial
support for cx_Oracle with Python 3.
[ticket:1670]

15 years agothese pass on +zxjdbc, seemingly because it lacks a sane rowcount
Philip Jenvey [Fri, 12 Mar 2010 19:07:53 +0000 (11:07 -0800)] 
these pass on +zxjdbc, seemingly because it lacks a sane rowcount

15 years ago- introduce an optimizing type _NativeUnicodeMixin to oracle plus supporting
Mike Bayer [Fri, 12 Mar 2010 18:30:38 +0000 (18:30 +0000)] 
- introduce an optimizing type _NativeUnicodeMixin to oracle plus supporting
changes to Enum/SchemaType to re-support adaptation of string types.
This approach can be adapted by "conditional" unicode returning dialects
(i.e. pyodbc and possibly mxodbc) to remove the overhead
of isinstance(value, unicode) calls when the dialect returned type is
of dbapi.UNICODE, dbapi.NVARCHAR, etc.

15 years agothink I came across a syntactical weirdism there
Mike Bayer [Fri, 12 Mar 2010 03:38:15 +0000 (22:38 -0500)] 
think I came across a syntactical weirdism there

15 years agorefine that a bit
Mike Bayer [Fri, 12 Mar 2010 03:12:49 +0000 (22:12 -0500)] 
refine that a bit

15 years agoadding windows-appropriate levels of pain to unicode handling
Mike Bayer [Fri, 12 Mar 2010 03:10:25 +0000 (22:10 -0500)] 
adding windows-appropriate levels of pain to unicode handling

15 years agomerge tds changes
Mike Bayer [Fri, 12 Mar 2010 02:55:09 +0000 (21:55 -0500)] 
merge tds changes

15 years agoadd a third state to converts_unicode_strings - "conditional". at the moment
Mike Bayer [Fri, 12 Mar 2010 02:52:54 +0000 (21:52 -0500)] 
add a third state to converts_unicode_strings - "conditional".  at the moment
this will have us do a check.  i.e. for MSSQL where NVARCHAR is unicode and VARCHAR is not.

15 years agoAdded a non-freetds specific exclusion for pyodbc
Mike Bayer [Fri, 12 Mar 2010 02:23:25 +0000 (21:23 -0500)] 
Added a non-freetds specific exclusion for pyodbc

15 years agoformatting
Mike Bayer [Thu, 11 Mar 2010 23:46:21 +0000 (18:46 -0500)] 
formatting

15 years ago- query.scalar() now raises an exception if more than one
Mike Bayer [Thu, 11 Mar 2010 23:38:51 +0000 (18:38 -0500)] 
- query.scalar() now raises an exception if more than one
row is returned.  All other behavior remains the same.
[ticket:1735]

15 years ago- Calling query.order_by() or query.distinct() before calling
Mike Bayer [Thu, 11 Mar 2010 23:04:57 +0000 (18:04 -0500)] 
- Calling query.order_by() or query.distinct() before calling
query.select_from(), query.with_polymorphic(), or
query.from_statement() raises an exception now instead of
silently dropping those criterion. [ticket:1736]

15 years agothis resolves the returning failures from #1733
Mike Bayer [Thu, 11 Mar 2010 21:36:03 +0000 (21:36 +0000)] 
this resolves the returning failures from #1733

15 years agore-enable these tests
Mike Bayer [Thu, 11 Mar 2010 21:34:13 +0000 (21:34 +0000)] 
re-enable these tests

15 years agoadded better typing for integer expressions, since integer is implementing _DateAffinity
Mike Bayer [Thu, 11 Mar 2010 21:18:37 +0000 (16:18 -0500)] 
added better typing for integer expressions, since integer is implementing _DateAffinity

15 years agoforce an oracle test to pass. this is as usual an extremely fringy test for a featur...
Mike Bayer [Thu, 11 Mar 2010 18:52:02 +0000 (18:52 +0000)] 
force an oracle test to pass.  this is as usual an extremely fringy test for a feature nobody should be using normally.

15 years agothese fail for unknown reasons. Seems to be potentially VARCHAR used with RETURNING...
Mike Bayer [Thu, 11 Mar 2010 18:39:15 +0000 (18:39 +0000)] 
these fail for unknown reasons.  Seems to be potentially VARCHAR used with RETURNING, or out params, not sure.

15 years agofix this test for oracle so all types return datetime.date
Mike Bayer [Thu, 11 Mar 2010 18:34:27 +0000 (18:34 +0000)] 
fix this test for oracle so all types return datetime.date

15 years agothis test requires a length for the varchar in mysql/oracle
Mike Bayer [Thu, 11 Mar 2010 18:21:44 +0000 (18:21 +0000)] 
this test requires a length for the varchar in mysql/oracle

15 years ago- fix the sqlalchemy.test.schema.Column function to work with copies
Mike Bayer [Thu, 11 Mar 2010 18:01:04 +0000 (18:01 +0000)] 
- fix the sqlalchemy.test.schema.Column function to work with copies
- add sequences to new associationproxy tests
- test/ext passes 100% on oracle here

15 years agomerged default tip
Mike Bayer [Thu, 11 Mar 2010 17:43:55 +0000 (17:43 +0000)] 
merged default tip

15 years agoadd autoincrement flags to decls
Mike Bayer [Thu, 11 Mar 2010 17:43:34 +0000 (17:43 +0000)] 
add autoincrement flags to decls

15 years ago- the copy() method of Column now copies over uninitialized
Mike Bayer [Thu, 11 Mar 2010 17:42:06 +0000 (12:42 -0500)] 
- the copy() method of Column now copies over uninitialized
"on table attach" events.  Helps with the new declarative
"mixin" capability.

15 years ago- mark tests unsupported by sqlite unsupported by oracle as well
Mike Bayer [Thu, 11 Mar 2010 17:22:49 +0000 (17:22 +0000)] 
- mark tests unsupported by sqlite unsupported by oracle as well

15 years ago- fixed internal error which would occur if calling has()
Mike Bayer [Thu, 11 Mar 2010 17:07:08 +0000 (12:07 -0500)] 
- fixed internal error which would occur if calling has()
or similar complex expression on a single-table inheritance
relation(). [ticket:1731]

15 years ago- Oracle 'DATE' now does not perform any result processing,
Mike Bayer [Thu, 11 Mar 2010 15:27:18 +0000 (10:27 -0500)] 
- Oracle 'DATE' now does not perform any result processing,
as the DATE type in Oracle stores full date+time objects,
that's what you'll get.  Note that the generic types.Date
type *will* still call value.date() on incoming values,
however.  When reflecting a table, the reflected type
will be 'DATE'.

15 years ago- emphasized query.join() in ORM tutorial as per [ticket:1708]
Mike Bayer [Wed, 10 Mar 2010 23:29:32 +0000 (18:29 -0500)] 
- emphasized query.join() in ORM tutorial as per [ticket:1708]
- cleaned up tutorial w.r.t. eagerload, added a section for contains_eager as this function
is equally important
- added better linkages in sqlalchemy.orm reference documentation, updated antiquated
docs for contains_eager(), got aliased()/AliasedClass documented as well as Sphinx will
allow us

15 years agofixed up docs for execution_options() across all three locations.
Mike Bayer [Tue, 9 Mar 2010 23:45:30 +0000 (18:45 -0500)] 
fixed up docs for execution_options() across all three locations.

15 years ago- moved the logic within _BindParamClause which decides about coercing the bind's...
Mike Bayer [Tue, 9 Mar 2010 22:46:00 +0000 (17:46 -0500)] 
- moved the logic within _BindParamClause which decides about coercing the bind's type
based on the compared type into AbstractType.   The new method is called _coerce_compared_value()
and receives the operator and the raw python value to be coerced.    TypeDecorator
overrides this to provude the "old" 0.5 behavior of coercing the other side of the expression
unconditonally.
- added docs to TypeDecorator attempting to explain this though they are a little verbose.
- added caveats to Interval, which in "non-native" mode can't really handle proper expression behavior.  the "typing" would have to move into the compiler, such that on a DB like SQLite we're actually wrapping left/right side into its epoch functions, etc., its a big job.  current infrastructure, as powerful as it is, still isn't at that level.

15 years agomeaningless change
Mike Bayer [Tue, 9 Mar 2010 21:47:45 +0000 (16:47 -0500)] 
meaningless change

15 years agobase tests pass
Mike Bayer [Tue, 9 Mar 2010 19:32:38 +0000 (14:32 -0500)] 
base tests pass

15 years agoalmost there, some tests failing still.
Mike Bayer [Tue, 9 Mar 2010 18:41:43 +0000 (13:41 -0500)] 
almost there, some tests failing still.

15 years agomerge latest tip. practicing on mercurial.
Mike Bayer [Tue, 9 Mar 2010 04:54:30 +0000 (23:54 -0500)] 
merge latest tip.  practicing on mercurial.

15 years agostill thinking about stuff here
Mike Bayer [Tue, 9 Mar 2010 02:15:16 +0000 (21:15 -0500)] 
still thinking about stuff here

15 years agoworking on getting operators/left hand type awareness into the "bind" coercion. ...
Mike Bayer [Mon, 8 Mar 2010 23:27:35 +0000 (18:27 -0500)] 
working on getting operators/left hand type awareness into the "bind" coercion.  this system has to be figured out somehow

15 years agofix last commit
Philip Jenvey [Mon, 8 Mar 2010 21:04:32 +0000 (13:04 -0800)] 
fix last commit

15 years agosmall cleanup
Philip Jenvey [Mon, 8 Mar 2010 20:22:33 +0000 (12:22 -0800)] 
small cleanup

15 years agoRemove isnew argument from row_processors. It wasn't used anyway in most cases.
Gaëtan de Menten [Mon, 8 Mar 2010 16:02:56 +0000 (17:02 +0100)] 
Remove isnew argument from row_processors. It wasn't used anyway in most cases.

15 years agodistutils choked on the trailing slash on the lib directory in the manifest.
Brad Allen [Mon, 8 Mar 2010 02:43:11 +0000 (20:43 -0600)] 
distutils choked on the trailing slash on the lib directory in the manifest.

15 years agothe mercurial extension seems to not work in py3k and also I don't
Mike Bayer [Mon, 8 Mar 2010 01:56:32 +0000 (20:56 -0500)] 
the mercurial extension seems to not work in py3k and also I don't
like its usage during build/install.   going with the manual approach
for the moment.

15 years agouse setuptools_hg to auto-discover the same way we did with SVN.
Mike Bayer [Mon, 8 Mar 2010 00:29:39 +0000 (19:29 -0500)] 
use setuptools_hg to auto-discover the same way we did with SVN.
Thanks *much* to Jannis Leidel for the suggestion/creation !

15 years ago- plug a minor ORM speed hit in Events (**kwargs).
Gaëtan de Menten [Sun, 7 Mar 2010 19:45:39 +0000 (20:45 +0100)] 
- plug a minor ORM speed hit in Events (**kwargs).
- added comment explaining some strange code

15 years agoCleaned up some long lines to test the commit hooks.
Michael Trier [Sun, 7 Mar 2010 15:56:11 +0000 (10:56 -0500)] 
Cleaned up some long lines to test the commit hooks.

15 years ago- cleanup some long lines. (test hg commit hook)
Mike Bayer [Sun, 7 Mar 2010 06:56:25 +0000 (01:56 -0500)] 
- cleanup some long lines.  (test hg commit hook)

15 years agoupdate tags
convert-repo [Sat, 6 Mar 2010 21:24:12 +0000 (21:24 +0000)] 
update tags

15 years agouse a flag to build cextensions (thanks again to Genshi for the tip)
Mike Bayer [Fri, 5 Mar 2010 15:33:21 +0000 (15:33 +0000)] 
use a flag to build cextensions (thanks again to Genshi for the tip)

15 years agotypo
Mike Bayer [Fri, 5 Mar 2010 14:52:57 +0000 (14:52 +0000)] 
typo

15 years agotimings should use getitem syntax and not the slow getattr one
Gaëtan de Menten [Wed, 3 Mar 2010 20:40:39 +0000 (20:40 +0000)] 
timings should use getitem syntax and not the slow getattr one

15 years agofixes for some nasty edge cases when usng descriptors to compute special attributes
Chris Withers [Tue, 2 Mar 2010 10:17:31 +0000 (10:17 +0000)] 
fixes for some nasty edge cases when usng descriptors to compute special attributes

15 years agothere we go, that was the stupid gc bug
Mike Bayer [Mon, 1 Mar 2010 23:13:21 +0000 (23:13 +0000)] 
there we go, that was the stupid gc bug

15 years agoskip test for oursql
Mike Bayer [Mon, 1 Mar 2010 22:12:25 +0000 (22:12 +0000)] 
skip test for oursql

15 years agorequire nose .11 to support first_package_wins flag
Mike Bayer [Mon, 1 Mar 2010 22:03:10 +0000 (22:03 +0000)] 
require nose .11 to support first_package_wins flag

15 years agoallow __tablename__ to come from a mixin
Chris Withers [Mon, 1 Mar 2010 18:10:23 +0000 (18:10 +0000)] 
allow __tablename__ to come from a mixin

15 years agoparanoid test that single table inheritance works with single table inheritance
Chris Withers [Mon, 1 Mar 2010 17:59:19 +0000 (17:59 +0000)] 
paranoid test that single table inheritance works with single table inheritance

15 years agopreload type affinity entries so that these comparisons don't get shoved into the...
Mike Bayer [Mon, 1 Mar 2010 17:47:58 +0000 (17:47 +0000)] 
preload type affinity entries so that these comparisons don't get shoved into the callcounts

15 years agoun-break the copyright link that chrisw broke
Mike Bayer [Mon, 1 Mar 2010 16:37:43 +0000 (16:37 +0000)] 
un-break the copyright link that chrisw broke

15 years agoAdded support for FOUND_ROWS to mysqlconnector.
Michael Trier [Mon, 1 Mar 2010 03:01:55 +0000 (03:01 +0000)] 
Added support for FOUND_ROWS to mysqlconnector.

15 years agoAnd more wonderfully crafted documentation changes to link function/method names...
Michael Trier [Mon, 1 Mar 2010 02:57:47 +0000 (02:57 +0000)] 
And more wonderfully crafted documentation changes to link function/method names to their appropriate definitions in the API docs. Thank you Diana Clarke. Refs #1703.

15 years ago- adjusted the literal coercion rules to take the left side's type into account,...
Mike Bayer [Mon, 1 Mar 2010 01:00:12 +0000 (01:00 +0000)] 
- adjusted the literal coercion rules to take the left side's type into account, if it is
compatible with what was found for the right, so that things like oracle CHAR conversions
work.
- oracle dialect specific tests pass again.

15 years agomore bumps
Mike Bayer [Mon, 1 Mar 2010 00:25:50 +0000 (00:25 +0000)] 
more bumps

15 years agosome 2.4 bumps probably due to the tuple/list thing
Mike Bayer [Mon, 1 Mar 2010 00:25:02 +0000 (00:25 +0000)] 
some 2.4 bumps probably due to the tuple/list thing

15 years ago-remove proof of concept "cascade constraints"
Mike Bayer [Sun, 28 Feb 2010 23:58:01 +0000 (23:58 +0000)] 
-remove proof of concept "cascade constraints"

15 years agoChanges to get mysqlconnector passing most tests.
Michael Trier [Sun, 28 Feb 2010 23:56:11 +0000 (23:56 +0000)] 
Changes to get mysqlconnector passing most tests.

15 years ago- the execution sequence pulls all rowcount/last inserted ID
Mike Bayer [Sun, 28 Feb 2010 23:51:54 +0000 (23:51 +0000)] 
- the execution sequence pulls all rowcount/last inserted ID
info from the cursor before commit() is called on the
DBAPI connection in an "autocommit" scenario.  This helps
mxodbc with rowcount and is probably a good idea overall.
- cx_oracle wants list(), not tuple(), for empty execute.
- cleaned up plain SQL param handling

15 years agoMore cleanup to link function/method names in the docs to the API docs. Refs #1703.
Michael Trier [Sun, 28 Feb 2010 22:15:33 +0000 (22:15 +0000)] 
More cleanup to link function/method names in the docs to the API docs. Refs #1703.

15 years agomxodbc supports rowcount, just have to snag before the cursor is closed.
Mike Bayer [Sun, 28 Feb 2010 22:05:39 +0000 (22:05 +0000)] 
mxodbc supports rowcount, just have to snag before the cursor is closed.

15 years agoCorrected failing doctests in the docs directory due to Changeset r6860. Fixes #1722.
Michael Trier [Sun, 28 Feb 2010 21:55:16 +0000 (21:55 +0000)] 
Corrected failing doctests in the docs directory due to Changeset r6860. Fixes #1722.

15 years agosome ms/odbc fixes
Mike Bayer [Sun, 28 Feb 2010 21:29:20 +0000 (21:29 +0000)] 
some ms/odbc fixes

15 years agocallcounts
Mike Bayer [Sun, 28 Feb 2010 20:46:06 +0000 (20:46 +0000)] 
callcounts

15 years agosupport scale argument for the C implementation of the decimal processor
Gaëtan de Menten [Sun, 28 Feb 2010 20:39:49 +0000 (20:39 +0000)] 
support scale argument for the C implementation of the decimal processor

15 years agofix echo test
Mike Bayer [Sun, 28 Feb 2010 20:15:19 +0000 (20:15 +0000)] 
fix echo test

15 years ago- simplify the OurSQL dialect regarding py3k, this version gives it a fairly
Mike Bayer [Sun, 28 Feb 2010 20:12:43 +0000 (20:12 +0000)] 
- simplify the OurSQL dialect regarding py3k, this version gives it a fairly
fighting chance on python 3.  there's an oursql bug where it can't raise
an exception on executemany() correctly.
- needed to add "plain_query" wrappers for all the reflection methods.  not sure
why this was not needed earlier.

15 years ago- orm: Removed a lot of logging that nobody really cares about,
Mike Bayer [Sun, 28 Feb 2010 17:43:10 +0000 (17:43 +0000)] 
- orm: Removed a lot of logging that nobody really cares about,
logging that remains will respond to live changes in the
log level.  No significant overhead is added.  [ticket:1719]
- engine: Opened up logging a bit such that isEnabledFor() is called
more often, so that changes to the log level for engine/pool
will be reflected on next connect.   This adds a small
amount of method call overhead.  It's negligible and will make
life a lot easier for all those situations when logging
just happens to be configured after create_engine() is called.
[ticket:1719]

15 years agoCorrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721.
Michael Trier [Sun, 28 Feb 2010 17:05:20 +0000 (17:05 +0000)] 
Corrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721.

15 years ago- make tuple a little more friendly
Mike Bayer [Sun, 28 Feb 2010 16:46:42 +0000 (16:46 +0000)] 
- make tuple a little more friendly

15 years agoComments in oursql cause 2to3 to fail.
Michael Trier [Sun, 28 Feb 2010 02:59:04 +0000 (02:59 +0000)] 
Comments in oursql cause 2to3 to fail.

15 years agoMore work to link in the function names to the API docs. Refs #1703.
Michael Trier [Sun, 28 Feb 2010 01:18:17 +0000 (01:18 +0000)] 
More work to link in the function names to the API docs. Refs #1703.

15 years agofurther numeric fixes
Mike Bayer [Sat, 27 Feb 2010 20:10:03 +0000 (20:10 +0000)] 
further numeric fixes

15 years agoworking on pyodbc / mxodbc
Mike Bayer [Sat, 27 Feb 2010 20:03:33 +0000 (20:03 +0000)] 
working on pyodbc / mxodbc

15 years agosome todos
Mike Bayer [Sat, 27 Feb 2010 17:53:00 +0000 (17:53 +0000)] 
some todos

15 years agothe "in" was IN-tentional, ha ha
Mike Bayer [Sat, 27 Feb 2010 17:06:34 +0000 (17:06 +0000)] 
the "in" was IN-tentional, ha ha

15 years agoA few cleanups of the mxodbc dialect.
Michael Trier [Sat, 27 Feb 2010 02:56:27 +0000 (02:56 +0000)] 
A few cleanups of the mxodbc dialect.

15 years ago- threadlocal engine wasn't properly closing the connection
Mike Bayer [Sat, 27 Feb 2010 00:44:26 +0000 (00:44 +0000)] 
- threadlocal engine wasn't properly closing the connection
upon close() - fixed that.
- Transaction object doesn't rollback or commit if it isn't
"active", allows more accurate nesting of begin/rollback/commit.
- Added basic support for mxODBC [ticket:1710].
- Python unicode objects as binds result in the Unicode type,
not string, thus eliminating a certain class of unicode errors
on drivers that don't support unicode binds.

15 years agoAdded CHANGES info to document bind parameter change.
Michael Trier [Fri, 26 Feb 2010 19:27:26 +0000 (19:27 +0000)] 
Added CHANGES info to document bind parameter change.

15 years agoChanged bind parameters to be passed as a tuple. Some drivers don't like to receive...
Michael Trier [Fri, 26 Feb 2010 19:05:00 +0000 (19:05 +0000)] 
Changed bind parameters to be passed as a tuple. Some drivers don't like to receive a list.

15 years ago- the "scale" argument of the Numeric() type is honored when
Mike Bayer [Fri, 26 Feb 2010 17:50:34 +0000 (17:50 +0000)] 
- the "scale" argument of the Numeric() type is honored when
coercing a returned floating point value into a string
on its way to Decimal - this allows accuracy to function
on SQLite, MySQL.  [ticket:1717]

15 years agofix unicode warnings
Mike Bayer [Fri, 26 Feb 2010 17:20:10 +0000 (17:20 +0000)] 
fix unicode warnings