]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
15 years agohappy new year
Mike Bayer [Thu, 7 Jan 2010 23:56:00 +0000 (23:56 +0000)] 
happy new year

15 years ago- Session.merge() is performance optimized, using half the
Mike Bayer [Thu, 7 Jan 2010 22:09:17 +0000 (22:09 +0000)] 
- Session.merge() is performance optimized, using half the
call counts for "load=False" mode compared to 0.5 and
significantly fewer SQL queries in the case of collections
for "load=True" mode.

15 years ago- py3k binary type returned natively for sqlite3, pg8000, fixes [ticket:1639] and...
Mike Bayer [Thu, 7 Jan 2010 18:47:39 +0000 (18:47 +0000)] 
- py3k binary type returned natively for sqlite3, pg8000, fixes [ticket:1639] and [ticket:1581] for now
- use type(None), py3k compat, [ticket:1584]

15 years agoremove needless check_modified()
Mike Bayer [Thu, 7 Jan 2010 17:51:45 +0000 (17:51 +0000)] 
remove needless check_modified()

15 years agomerge r6616 of 0.5 branch, allow DefaultGenerators as "default" and "onupdate"
Mike Bayer [Thu, 7 Jan 2010 00:24:30 +0000 (00:24 +0000)] 
merge r6616 of 0.5 branch, allow DefaultGenerators as "default" and "onupdate"

15 years ago- fix mysqlconnector import
Mike Bayer [Mon, 4 Jan 2010 18:41:16 +0000 (18:41 +0000)] 
- fix mysqlconnector import
- mysqlconnector returns get_server_version() as a tuple-ready structure

15 years ago- accept 'expire' with a deprecation warning for query.update() [ticket:1648]
Mike Bayer [Mon, 4 Jan 2010 16:36:11 +0000 (16:36 +0000)] 
- accept 'expire' with a deprecation warning for query.update() [ticket:1648]

15 years ago- rename "myconnpy" to "mysqlconnector"
Mike Bayer [Mon, 4 Jan 2010 16:26:01 +0000 (16:26 +0000)] 
- rename "myconnpy" to "mysqlconnector"
- remove all bug workarounds in mysqlconnector dialect
- add mysqlconnector as one of two "official" DBAPIs for MySQL

15 years ago- Fixed a column arithmetic bug that affected column
Mike Bayer [Sun, 3 Jan 2010 20:57:37 +0000 (20:57 +0000)] 
- Fixed a column arithmetic bug that affected column
correspondence for cloned selectables which contain
free-standing column expressions.   This bug is
generally only noticeable when exercising newer
ORM behavior only availble in 0.6 via [ticket:1568],
but is more correct at the SQL expression level
as well. [ticket:1617]

15 years agoadd documentation for Numeric/Float types, [ticket:1624]
Mike Bayer [Sun, 3 Jan 2010 19:11:37 +0000 (19:11 +0000)] 
add documentation for Numeric/Float types, [ticket:1624]

15 years agofixed DDL quoting with literal strings that have ' [ticket:1640]
Mike Bayer [Sun, 3 Jan 2010 18:53:41 +0000 (18:53 +0000)] 
fixed DDL quoting with literal strings that have ' [ticket:1640]

15 years ago- added a refresh logger step to the nose plugin so that SQLA class loggers get corre...
Mike Bayer [Sun, 3 Jan 2010 18:42:23 +0000 (18:42 +0000)] 
- added a refresh logger step to the nose plugin so that SQLA class loggers get correct state from nose cmdline
- fix mapper logging [ticket:1620]

15 years ago- have inspector properly return default_schema_name [ticket:1626]
Mike Bayer [Sun, 3 Jan 2010 18:27:38 +0000 (18:27 +0000)] 
- have inspector properly return default_schema_name [ticket:1626]

15 years agoadd a brief doc for custom DDL
Mike Bayer [Sun, 3 Jan 2010 18:22:50 +0000 (18:22 +0000)] 
add a brief doc for custom DDL

15 years ago- clarify ForeignKey docs, copy operation
Mike Bayer [Sat, 2 Jan 2010 18:20:08 +0000 (18:20 +0000)] 
- clarify ForeignKey docs, copy operation
- link all classes/functions in expressions

15 years ago- The copy() method on Column now supports uninitialized,
Mike Bayer [Sat, 2 Jan 2010 03:50:50 +0000 (03:50 +0000)] 
- The copy() method on Column now supports uninitialized,
unnamed Column objects. This allows easy creation of
declarative helpers which place common columns on multiple
subclasses (merged from 0.5 with changes).

15 years agobegin modernize of informix dialect for [ticket:1499]
Mike Bayer [Thu, 31 Dec 2009 17:45:19 +0000 (17:45 +0000)] 
begin modernize of informix dialect for [ticket:1499]

15 years agoFix invalid behavior of Query.update and Query.delete with evaluate strategy and...
Ants Aasma [Thu, 31 Dec 2009 12:21:30 +0000 (12:21 +0000)] 
Fix invalid behavior of Query.update and Query.delete with evaluate strategy and no criterion.

15 years agofix error reporting in evaluator for unknown clauselist operators.
Ants Aasma [Wed, 30 Dec 2009 15:51:03 +0000 (15:51 +0000)] 
fix error reporting in evaluator for unknown clauselist operators.

15 years agosome compile docs
Mike Bayer [Wed, 30 Dec 2009 04:49:03 +0000 (04:49 +0000)] 
some compile docs

15 years ago- postgresql dialect can properly detect pg "devel" version
Mike Bayer [Tue, 29 Dec 2009 23:41:04 +0000 (23:41 +0000)] 
- postgresql dialect can properly detect pg "devel" version
strings, i.e. "8.5devel" [ticket:1636]

15 years ago- calling expr.in_([]), i.e. with an empty list, emits a warning
Mike Bayer [Tue, 29 Dec 2009 23:20:48 +0000 (23:20 +0000)] 
- calling expr.in_([]), i.e. with an empty list, emits a warning
before issuing the usual "expr != expr" clause.  The
"expr != expr" can be very expensive, and it's preferred
that the user not issue in_() if the list is empty,
instead simply not querying, or modifying the criterion
as appropriate for more complex situations.
[ticket:1628]

15 years agoadd note re #1646
Mike Bayer [Tue, 29 Dec 2009 23:06:23 +0000 (23:06 +0000)] 
add note re #1646

15 years agomerge r6591, r6592 from 0.5 branch for PGInterval etc. /extract
Mike Bayer [Tue, 29 Dec 2009 16:19:09 +0000 (16:19 +0000)] 
merge r6591, r6592 from 0.5 branch for PGInterval etc. /extract

15 years agoonly on oracle
Mike Bayer [Tue, 29 Dec 2009 02:45:32 +0000 (02:45 +0000)] 
only on oracle

15 years ago- merge r6586 from 0.5 branch, for [ticket:1647]
Mike Bayer [Tue, 29 Dec 2009 02:41:16 +0000 (02:41 +0000)] 
- merge r6586 from 0.5 branch, for [ticket:1647]

15 years agorest tweaks
Mike Bayer [Mon, 28 Dec 2009 03:22:24 +0000 (03:22 +0000)] 
rest tweaks

15 years agoclean up mapperextension docs
Mike Bayer [Mon, 28 Dec 2009 03:18:13 +0000 (03:18 +0000)] 
clean up mapperextension docs

15 years agoRecognize more Firebird disconnection cases, fixing #1646 on trunk
Lele Gaifax [Sun, 27 Dec 2009 18:56:27 +0000 (18:56 +0000)] 
Recognize more Firebird disconnection cases, fixing #1646 on trunk

15 years agoinclude .jpg in recursive doc
Mike Bayer [Sat, 26 Dec 2009 23:27:08 +0000 (23:27 +0000)] 
include .jpg in recursive doc

15 years agomerged r6570 from 0.5 branch, dont reflect IOT tables [ticket:1637]
Mike Bayer [Sat, 26 Dec 2009 22:41:44 +0000 (22:41 +0000)] 
merged r6570 from 0.5 branch, dont reflect IOT tables [ticket:1637]

15 years ago- merge sqlite 2.5 memory exception from r6567 of 0.5 branch
Mike Bayer [Fri, 25 Dec 2009 16:50:49 +0000 (16:50 +0000)] 
- merge sqlite 2.5 memory exception from r6567 of 0.5 branch

15 years agoadd the uselist=False / single row assertion from [ticket:1643] for lazy loads too.
Mike Bayer [Sat, 19 Dec 2009 05:41:37 +0000 (05:41 +0000)] 
add the uselist=False / single row assertion from [ticket:1643] for lazy loads too.

15 years agoand the docs...
Mike Bayer [Fri, 18 Dec 2009 21:12:18 +0000 (21:12 +0000)] 
and the docs...

15 years agothe arg is on Table, ahhh
Mike Bayer [Fri, 18 Dec 2009 21:11:26 +0000 (21:11 +0000)] 
the arg is on Table, ahhh

15 years ago- Column() supports a keyword argument "sqlite_autoincrement", which
Mike Bayer [Fri, 18 Dec 2009 21:08:35 +0000 (21:08 +0000)] 
- Column() supports a keyword argument "sqlite_autoincrement", which
applies the SQLite keyword "AUTOINCREMENT" to columns within DDL -
will prevent generation of a separate PRIMARY KEY constraint.
[ticket:1016]
- added docs
- fixed underlines in mysql.rst

15 years ago- added _with_options() to Connection. not publicizing this yet.
Mike Bayer [Fri, 18 Dec 2009 20:41:34 +0000 (20:41 +0000)] 
- added _with_options() to Connection.  not publicizing this yet.
- updated oursql driver with latest fixes using options. [ticket:1613]
- all the MySQL drivers get a shoutout in the docs
- marked tests that OurSQL has problems with (only three), passes 100% now

15 years ago- mysql: a column of type TIMESTAMP now defaults to NULL if
Mike Bayer [Fri, 18 Dec 2009 20:09:14 +0000 (20:09 +0000)] 
- mysql:  a column of type TIMESTAMP now defaults to NULL if
"nullable=False" is not passed to Column(), and no default
is present. This is now consistent with all other types,
and in the case of TIMESTAMP explictly renders "NULL"
due to MySQL's "switching" of default nullability
for TIMESTAMP columns. [ticket:1539]

15 years ago- The version_id_col feature on mapper() will raise a warning when
Mike Bayer [Fri, 18 Dec 2009 19:11:19 +0000 (19:11 +0000)] 
- The version_id_col feature on mapper() will raise a warning when
used with dialects that don't support "rowcount" adequately.
[ticket:1569]

15 years ago- All pyodbc-dialects now support extra pyodbc-specific
Mike Bayer [Fri, 18 Dec 2009 18:55:14 +0000 (18:55 +0000)] 
- All pyodbc-dialects now support extra pyodbc-specific
kw arguments 'ansi', 'unicode_results', 'autocommit'.
[ticket:1621]

15 years ago- Fixed bug preventing alias() of an alias() from being
Mike Bayer [Fri, 18 Dec 2009 18:46:40 +0000 (18:46 +0000)] 
- Fixed bug preventing alias() of an alias() from being
cloned or adapted (occurs frequently in ORM operations).
[ticket:1641]

15 years ago- relation() with uselist=False will emit a warning when
Mike Bayer [Fri, 18 Dec 2009 17:24:20 +0000 (17:24 +0000)] 
- relation() with uselist=False will emit a warning when
an eager load locates more than one valid value for the row,
typically due to primaryjoin/secondaryjoin conditions which
aren't appropriate for LEFT OUTER JOIN.  [ticket:1643]

15 years ago- Session.merge() now properly overwrites a many-to-one or
Mike Bayer [Mon, 14 Dec 2009 01:29:51 +0000 (01:29 +0000)] 
- Session.merge() now properly overwrites a many-to-one or
uselist=False attribute to None if the attribute
is also None in the given object to be merged.

15 years agodocumentation patch for [ticket:1354]
Mike Bayer [Wed, 9 Dec 2009 00:00:48 +0000 (00:00 +0000)] 
documentation patch for [ticket:1354]

15 years ago- merge r6549 of 0.5 branch
Mike Bayer [Tue, 8 Dec 2009 23:47:09 +0000 (23:47 +0000)] 
- merge r6549 of 0.5 branch
- Fixed bug in query.update() when passing Cls.attribute
as keys in the value dict and using synchronize_session='expire'
('fetch' in 0.6). [ticket:1436]

15 years agodon't advocate for `text()` inside of `select()`, plain strings are interpreted more...
Mike Bayer [Tue, 8 Dec 2009 23:17:14 +0000 (23:17 +0000)] 
don't advocate for `text()` inside of `select()`, plain strings are interpreted more intelligently, [ticket:1374]

15 years ago- The signature of the proxy_factory callable passed to
Mike Bayer [Tue, 8 Dec 2009 23:09:48 +0000 (23:09 +0000)] 
- The signature of the proxy_factory callable passed to
association_proxy is now (lazy_collection, creator,
value_attr, association_proxy), adding a fourth argument
that is the parent AssociationProxy argument.  Allows
serializability and subclassing of the built in collections.
[ticket:1259]

15 years ago- Session.execute() now locates table- and
Mike Bayer [Tue, 8 Dec 2009 03:09:18 +0000 (03:09 +0000)] 
- Session.execute() now locates table- and
mapper-specific binds based on a passed
in expression which is an insert()/update()/delete()
construct. [ticket:1054]

15 years ago- removed needless "counter" behavior with select()
Mike Bayer [Tue, 8 Dec 2009 02:31:59 +0000 (02:31 +0000)] 
- removed needless "counter" behavior with select()
labelnames that match a column name in the table,
i.e. generates "tablename_id" for "id", instead of
"tablename_id_1" in an attempt to avoid naming
conflicts, when the table has a column actually
named "tablename_id" - this is because
the labeling logic is always applied to all columns
      so a naming conflict will never occur.

15 years ago- multi-part schema names, i.e. with dots such as
Mike Bayer [Tue, 8 Dec 2009 02:27:35 +0000 (02:27 +0000)] 
- multi-part schema names, i.e. with dots such as
"dbo.master", are now rendered in select() labels
with underscores for dots, i.e. "dbo_master_table_column".
This is a "friendly" label that behaves better
in result sets. [ticket:1428]

15 years ago- The "use get" behavior of many-to-one relations, i.e. that a
Mike Bayer [Tue, 8 Dec 2009 01:53:21 +0000 (01:53 +0000)] 
- The "use get" behavior of many-to-one relations, i.e. that a
lazy load will fallback to the possibly cached query.get()
value, now works across join conditions where the two compared
types are not exactly the same class, but share the same
"affinity" - i.e. Integer and SmallInteger.  Also allows
combinations of reflected and non-reflected types to work
with 0.5 style type reflection, such as PGText/Text (note 0.6
reflects types as their generic versions).   [ticket:1556]
- types now support an "affinity comparison" operation, i.e.
that an Integer/SmallInteger are "compatible", or
a Text/String, PickleType/Binary, etc.  Part of
[ticket:1556].

15 years ago- sqlite dialect properly generates CREATE INDEX for a table
Mike Bayer [Mon, 7 Dec 2009 23:08:42 +0000 (23:08 +0000)] 
- sqlite dialect properly generates CREATE INDEX for a table
that is in an alternate schema.  [ticket:1439]

15 years agofixed CHANGES message location
Mike Bayer [Mon, 7 Dec 2009 22:53:32 +0000 (22:53 +0000)] 
fixed CHANGES message location

15 years ago- Fixed a needless select which would occur when merging
Mike Bayer [Mon, 7 Dec 2009 22:39:33 +0000 (22:39 +0000)] 
- Fixed a needless select which would occur when merging
transient objects that contained a null primary key
identifier.  [ticket:1618]

15 years agoremove unfinished dialects
Mike Bayer [Mon, 7 Dec 2009 19:29:36 +0000 (19:29 +0000)] 
remove unfinished dialects

15 years agoseriously, this is not 0.6 code !
Mike Bayer [Sun, 6 Dec 2009 23:47:13 +0000 (23:47 +0000)] 
seriously, this is not 0.6 code !

15 years agoadd a warning for unported dialects. considered a full blown NotImplementedError...
Mike Bayer [Sun, 6 Dec 2009 23:45:19 +0000 (23:45 +0000)] 
add a warning for unported dialects.   considered a full blown NotImplementedError but will see if this gets the message across

15 years ago- The Boolean type, when used on a backend that doesn't
Mike Bayer [Sun, 6 Dec 2009 22:58:05 +0000 (22:58 +0000)] 
- The Boolean type, when used on a backend that doesn't
have native boolean support, will generate a CHECK
constraint "col IN (0, 1)" along with the int/smallint-
based column type.  This can be switched off if
desired with create_constraint=False.
Note that MySQL has no native boolean *or* CHECK constraint
support so this feature isn't available on that platform.
[ticket:1589]

15 years ago- reworked the DDL generation of ENUM and similar to be more platform agnostic.
Mike Bayer [Sun, 6 Dec 2009 19:51:10 +0000 (19:51 +0000)] 
- reworked the DDL generation of ENUM and similar to be more platform agnostic.
Uses a straight CheckConstraint with a generic expression.  Preparing for boolean
constraint in [ticket:1589]
- CheckConstraint now accepts SQL expressions, though support for quoting of values
will be very limited.  we don't want to get into formatting dates and such.

15 years agoremove unneeded _OracleDateTime/_OracleTimestamp cx_oracle types, streamline _OracleD...
Mike Bayer [Sun, 6 Dec 2009 01:59:14 +0000 (01:59 +0000)] 
remove unneeded _OracleDateTime/_OracleTimestamp cx_oracle types, streamline _OracleDate, [ticket:1600]

15 years ago- merged r6526 from 0.5 branch + some additional formatting fixes, [ticket:1597]
Mike Bayer [Sun, 6 Dec 2009 01:41:13 +0000 (01:41 +0000)] 
- merged r6526 from 0.5 branch + some additional formatting fixes, [ticket:1597]

15 years ago- fixed the import for entrypoint-driven dialects to
Mike Bayer [Sat, 5 Dec 2009 00:36:11 +0000 (00:36 +0000)] 
- fixed the import for entrypoint-driven dialects to
not rely upon silly tb_info trick to determine import
error status.  [ticket:1630]

15 years ago - an explicit check occurs when a synonym() is used with
Mike Bayer [Fri, 4 Dec 2009 01:51:23 +0000 (01:51 +0000)] 
  - an explicit check occurs when a synonym() is used with
    map_column=True, when a ColumnProperty (deferred or otherwise)
    exists separately in the properties dictionary sent to mapper
    with the same keyname.   Instead of silently replacing
    the existing property (and possible options on that property),
    an error is raised.  [ticket:1633]

15 years ago- The cursor associated with connection pool connections
Mike Bayer [Thu, 3 Dec 2009 02:34:47 +0000 (02:34 +0000)] 
- The cursor associated with connection pool connections
(i.e. _CursorFairy) now proxies `__iter__()` to the
underlying cursor correctly. [ticket:1632]

15 years agoprimaryjoin/secondaryjoin accept ColumnElement, docs, [ticket:1622]
Mike Bayer [Mon, 30 Nov 2009 16:31:16 +0000 (16:31 +0000)] 
primaryjoin/secondaryjoin accept ColumnElement, docs, [ticket:1622]

16 years ago- changed a few isinstance(value, Decimal) to "is not None", where appropriate
Gaëtan de Menten [Sat, 28 Nov 2009 18:07:59 +0000 (18:07 +0000)] 
- changed a few isinstance(value, Decimal) to "is not None", where appropriate
- fixed result processor for Numeric(asdecimal=False) on MSSQL.

16 years ago- relation primaryjoin and secondaryjoin now check that they
Mike Bayer [Wed, 25 Nov 2009 17:34:25 +0000 (17:34 +0000)] 
- relation primaryjoin and secondaryjoin now check that they
are column-expressions, not just clause elements.  this prohibits
things like FROM expressions being placed there directly.
[ticket:1622]

16 years agotypo
Mike Bayer [Tue, 24 Nov 2009 23:26:47 +0000 (23:26 +0000)] 
typo

16 years agotest fails on zxjdbc
Mike Bayer [Tue, 24 Nov 2009 22:56:59 +0000 (22:56 +0000)] 
test fails on zxjdbc

16 years agoPrelookup codec in the String result processor for dialects which do not
Gaëtan de Menten [Mon, 23 Nov 2009 08:35:34 +0000 (08:35 +0000)] 
Prelookup codec in the String result processor for dialects which do not
return Unicode natively, as suggested in #1323. Provides a nice speed boost
(~21% total query time).

16 years agoadd NATIONAL CHAR test
Mike Bayer [Sun, 22 Nov 2009 22:21:08 +0000 (22:21 +0000)] 
add NATIONAL CHAR test

16 years ago- VARCHAR/NVARCHAR will not render without a length, raises
Mike Bayer [Sun, 22 Nov 2009 22:11:41 +0000 (22:11 +0000)] 
- VARCHAR/NVARCHAR will not render without a length, raises
an error before passing to MySQL.   Doesn't impact
CAST since VARCHAR is not allowed in MySQL CAST anyway,
the dialect renders CHAR/NCHAR in those cases.
[ticket:1252]

16 years agoadd an interesting from_statement() format
Mike Bayer [Sat, 21 Nov 2009 20:51:16 +0000 (20:51 +0000)] 
add an interesting from_statement() format

16 years agorevert part of the change of r6510 because "select datetime('now')" in SQLite
Gaëtan de Menten [Tue, 17 Nov 2009 19:38:09 +0000 (19:38 +0000)] 
revert part of the change of r6510 because "select datetime('now')" in SQLite
does not contain microseconds

16 years ago- sqlite
Gaëtan de Menten [Tue, 17 Nov 2009 18:35:06 +0000 (18:35 +0000)] 
- sqlite
    - DATE, TIME and DATETIME types can now take optional storage_format and
      regexp argument. storage_format can be used to store those types using
      a custom string format. regexp allows to use a custom regular expression
      to match string values from the database.
    - Time and DateTime types now use by a default a stricter regular
      expression to match strings from the database. Use the regexp argument
      if you are using data stored in a legacy format.
    - __legacy_microseconds__ on SQLite Time and DateTime types is not
      supported anymore. You should use the storage_format argument instead.
    - Date, Time and DateTime types are now stricter in what they accept as
      bind parameters: Date type only accepts date objects (and datetime ones,
      because they inherit from date), Time only accepts time objects, and
      DateTime only accepts date and datetime objects.

16 years agominor speed optimization in String result_processor (if decoding is required)
Gaëtan de Menten [Tue, 17 Nov 2009 18:28:13 +0000 (18:28 +0000)] 
minor speed optimization in String result_processor (if decoding is required)

16 years agominor speed optimization for PGArray bind & result processors
Gaëtan de Menten [Mon, 16 Nov 2009 15:50:25 +0000 (15:50 +0000)] 
minor speed optimization for PGArray bind & result processors

16 years ago- Fixed bug whereby composite columns wouldn't load properly
Mike Bayer [Sun, 15 Nov 2009 20:39:39 +0000 (20:39 +0000)] 
- Fixed bug whereby composite columns wouldn't load properly
when configured on a joined-table subclass, introduced in
version 0.5.6 as a result of the fix for [ticket:1480].
[ticket:1616] thx to Scott Torborg.

16 years agomerge r6504 from 0.5 plus an enhancement to the unit test, [ticket:1611]
Mike Bayer [Sun, 15 Nov 2009 20:22:57 +0000 (20:22 +0000)] 
merge r6504 from 0.5 plus an enhancement to the unit test, [ticket:1611]

16 years ago- Removed unused `load()` method from ShardedQuery.
Mike Bayer [Sun, 15 Nov 2009 19:50:55 +0000 (19:50 +0000)] 
- Removed unused `load()` method from ShardedQuery.
[ticket:1606]

16 years agostart relying on new unicode detection fully - remove isinstance() from the unicode...
Mike Bayer [Sun, 15 Nov 2009 19:46:54 +0000 (19:46 +0000)] 
start relying on new unicode detection fully - remove isinstance() from the unicode result processing.

16 years ago- pg8000 + postgresql dialects now check for float/numeric return
Mike Bayer [Sun, 15 Nov 2009 19:20:22 +0000 (19:20 +0000)] 
- pg8000 + postgresql dialects now check for float/numeric return
types to more intelligently determine float() vs. Decimal(),
[ticket:1567]
- since result processing is a hot issue of late, the DBAPI type
returned from cursor.description is certainly useful in cases like
these to determine an efficient result processor.   There's likely
other result processors that can make use of it.  But, backwards
incompat change to result_processor().  Happy major version number..

16 years agofix StaticPool [ticket:1615]
Mike Bayer [Thu, 12 Nov 2009 21:46:14 +0000 (21:46 +0000)] 
fix StaticPool [ticket:1615]

16 years agomerge r6497 of 0.5 branch
Mike Bayer [Wed, 11 Nov 2009 03:46:45 +0000 (03:46 +0000)] 
merge r6497 of 0.5 branch

16 years agoreduce some call overhead
Mike Bayer [Tue, 10 Nov 2009 23:15:39 +0000 (23:15 +0000)] 
reduce some call overhead

16 years agoscan for autocommit based on text() specific flag, saves isinstance() call on each...
Mike Bayer [Tue, 10 Nov 2009 22:59:59 +0000 (22:59 +0000)] 
scan for autocommit based on text() specific flag, saves isinstance() call on each execution.

16 years ago- new oursql dialect added. [ticket:1613]
Mike Bayer [Tue, 10 Nov 2009 22:39:42 +0000 (22:39 +0000)] 
- new oursql dialect added.  [ticket:1613]

16 years agodont run sqlsoup test on jython
Mike Bayer [Tue, 10 Nov 2009 00:48:06 +0000 (00:48 +0000)] 
dont run sqlsoup test on jython

16 years ago- subclassed Function off of new FunctionElement generic base
Mike Bayer [Tue, 10 Nov 2009 00:43:53 +0000 (00:43 +0000)] 
- subclassed Function off of new FunctionElement generic base
- removed "key" accessor of Function, Grouping - this doesn't seem to be used for anything
- various formatting
- documented the four "Element" classes in the compiler extension as per [ticket:1590]

16 years agotest fix, [ticket:1595]
Mike Bayer [Tue, 10 Nov 2009 00:10:11 +0000 (00:10 +0000)] 
test fix, [ticket:1595]

16 years ago- ForeignKey(constraint=some_parent) is now private _constraint
Mike Bayer [Mon, 9 Nov 2009 23:40:57 +0000 (23:40 +0000)] 
- ForeignKey(constraint=some_parent) is now private _constraint
- ForeignKey and ForeignKeyConstraint objects now correctly
copy() all their public keyword arguments.  [ticket:1605]

16 years ago- query.get() can be used with a mapping to an outer join
Mike Bayer [Mon, 9 Nov 2009 23:20:31 +0000 (23:20 +0000)] 
- query.get() can be used with a mapping to an outer join
where one or more of the primary key values are None.
[ticket:1135]

16 years agoadd test for map explicit Table
Mike Bayer [Mon, 9 Nov 2009 22:32:33 +0000 (22:32 +0000)] 
add test for map explicit Table

16 years ago- added a real unit test for sqlsoup
Mike Bayer [Mon, 9 Nov 2009 19:41:45 +0000 (19:41 +0000)] 
- added a real unit test for sqlsoup
- removed doctest stuff
- redid session docs for sqlsoup
- sqlsoup stays within the transaction of a Session now, is explcitly autocommit=False by default and includes commit()/rollback() methods
- sqlsoup db.<sometable>.update() and delete() now call
query(cls).update() and delete(), respectively.
- sqlsoup now has execute() and connection(), which call upon
the Session methods of those names, ensuring that the bind is
in terms of the SqlSoup object's bind.

16 years agomoved modified_event() calls below the attribute extension fires. this basically...
Mike Bayer [Sun, 8 Nov 2009 21:54:56 +0000 (21:54 +0000)] 
moved modified_event() calls below the attribute extension fires.  this basically has no difference in any case except that where an extension is calling commit() on the attribute -  in that case it usually, but not always, maintains the same history.   [ticket:1601]

16 years agoallow setattr() access to _CursorFairy directly, thereby removing the need for dialec...
Mike Bayer [Fri, 6 Nov 2009 15:51:06 +0000 (15:51 +0000)] 
allow setattr() access to _CursorFairy directly, thereby removing the need for dialects to guess whether they have a wrapped cursor or not, fixes #1609, regression from r6471

16 years agosupports unicode binds in PG too. even without the UNICODE extension it seems to...
Mike Bayer [Fri, 6 Nov 2009 02:39:16 +0000 (02:39 +0000)] 
supports unicode binds in PG too.  even without the UNICODE extension it seems to work now...

16 years agoWithin NamedTuple, izip is faster on most cases, and equally fast on others
Gaëtan de Menten [Thu, 5 Nov 2009 14:30:33 +0000 (14:30 +0000)] 
Within NamedTuple, izip is faster on most cases, and equally fast on others

16 years agouse list comprehension instead of generator as it is much faster for small
Gaëtan de Menten [Wed, 4 Nov 2009 20:22:00 +0000 (20:22 +0000)] 
use list comprehension instead of generator as it is much faster for small
lists, as will usually be the case here. provides a ~11% speedup for large
column-only queries.

16 years ago- Fixed bug in two-phase transaction whereby commit() method
Mike Bayer [Wed, 4 Nov 2009 17:15:36 +0000 (17:15 +0000)] 
- Fixed bug in two-phase transaction whereby commit() method
didn't set the full state which allows subsequent close()
call to succeed. [ticket:1603]