Commit Graph

6807 Commits

Author SHA1 Message Date
Jeff Dairiki b7abf86f72 Fix innodb autoinc constraint (double)quoting 2012-04-06 21:55:39 -07:00
Mike Bayer 4cb74452fe - [bug] Repaired the use_scope_identity
create_engine() flag when using the pyodbc
    dialect.  Previously this flag would be
    ignored if set to False.  When set to False,
    you'll get "SELECT @@identity" after each
    INSERT to get at the last inserted ID,
    for those tables which have "implicit_returning"
    set to False.
2012-04-05 14:31:28 -04:00
Diana Clarke 879e6bc462 Fixing link to python's logging module (see #2456). Thanks astrochase! 2012-04-03 17:40:51 -04:00
Mike Bayer 53b4337de3 Merged in _diana_/sqlalchemy-2385 (pull request #4) 2012-04-03 10:34:48 -04:00
Mike Bayer 1378bf0d25 - reopened #2453, needed to put in the original patch as well to cover the case
of column_property() objs building off each other
2012-04-03 09:59:22 -04:00
Diana Clarke a122db80f2 most of the drizzle docs are copy/pasta, let's just point users to the mysql docs and enhance as questions arise
- see #2385
2012-04-02 21:20:16 -04:00
Mike Bayer 47a799ecd5 - sql
- [bug] Removed warning when Index is created
    with no columns; while this might not be what
    the user intended, it is a valid use case
    as an Index could be a placeholder for just an
    index of a certain name.

- mssql
  - [feature] Added interim create_engine flag
    supports_unicode_binds to PyODBC dialect,
    to force whether or not the dialect
    passes Python unicode literals to PyODBC
    or not.
2012-04-01 19:42:54 -04:00
Mike Bayer 2563b33453 - [bug] Fixed bug which would prevent
OrderingList from being pickleable
[ticket:2454].  Courtesy Jeff Dairiki
2012-04-01 11:01:56 -04:00
Mike Bayer 45046367f3 - [bug] Fixed bug in expression annotation
mechanics which could lead to incorrect
rendering of SELECT statements with aliases
and joins, particularly when using
column_property().  [ticket:2453]
2012-03-31 13:35:05 -04:00
Mike Bayer b1fb11dda0 - [bug] Fixed bug whereby polymorphic_on
column that's not otherwise mapped on the
    class would be incorrectly included
    in a merge() operation, raising an error.
    [ticket:2449]
2012-03-31 12:55:42 -04:00
Mike Bayer 7142a17291 - [feature] Added new for_update/with_lockmode()
options for Postgresql: for_update="read"/
with_lockmode("read"),
for_update="read_nowait"/
with_lockmode("read_nowait").
These emit "FOR SHARE" and "FOR SHARE NOWAIT",
respectively.  Courtesy Diana Clarke
[ticket:2445]
2012-03-21 22:58:55 -04:00
Mike Bayer 565b5dc537 - 0.7.7
- [feature] Added prefix_with() method
to Query, calls upon select().prefix_with()
to allow placement of MySQL SELECT
directives in statements.  Courtesy
Diana Clarke [ticket:2443]
2012-03-20 20:12:26 -04:00
Diana Clarke 3903428841 I'm pretty sure this should be entities 2012-03-18 00:05:30 -04:00
Diana Clarke c8f693351a typos in lib/sqlalchemy/sql 2012-03-17 23:39:54 -04:00
Diana Clarke 3962c985b9 typos in lib/sqlalchemy/orm 2012-03-17 23:06:41 -04:00
Diana Clarke b60fdb0940 typos in lib/sqlalchemy/ext 2012-03-17 22:28:29 -04:00
Diana Clarke 920afb6127 typos in lib/sqlalchemy/engine 2012-03-17 22:07:10 -04:00
Diana Clarke 87fc12cc12 typoes in lib/sqlalchemy/dialects 2012-03-17 21:41:58 -04:00
Diana Clarke 4a7ee79850 typo 2012-03-16 19:55:29 -04:00
Mike Bayer 46eae846b7 Added tag rel_0_7_6 for changeset bd85bcc0cf 2012-03-14 21:26:44 -07:00
Mike Bayer bd85bcc0cf 0.7.6 release rel_0_7_6 2012-03-14 21:23:09 -07:00
Mike Bayer 101cde7894 another oracle failure 2012-03-14 17:31:59 -07:00
Mike Bayer 768bd7ec0a callcounts for py3k 2012-03-14 17:19:15 -07:00
Mike Bayer 00be8a02ad add autoincrements here hopefully fixing oracle test 2012-03-14 16:43:18 -07:00
Mike Bayer 3bf8feb6dd fails on oracle too 2012-03-14 16:41:20 -07:00
Mike Bayer 042184fdc9 add a checkfirst here as s3 seems to be stuck on the jenkins db 2012-03-14 16:25:57 -07:00
Mike Bayer c235b4a335 callcounts 2012-03-14 15:30:10 -07:00
Mike Bayer d62a2ca58f pg8000 fails on this 2012-03-14 14:56:57 -07:00
Mike Bayer 7ad0c8cb2b - [bug] Fixed issue whereby attribute-based
column access on a row would raise
AttributeError with non-C version,
NoSuchColumnError with C version.  Now
raises AttributeError in both cases.
[ticket:2398]
2012-03-14 14:34:36 -07:00
Mike Bayer 667f8f83fe - [feature] Added support for MySQL index and
primary key constraint types
(i.e. USING) via new mysql_using parameter
to Index and PrimaryKeyConstraint,
courtesy Diana Clarke.  [ticket:2386]
2012-03-14 14:32:13 -07:00
Mike Bayer 0b97ba8a14 - [bug] Added 'LEVEL' to the list of reserved
words for Oracle.  [ticket:2435]
2012-03-14 13:10:31 -07:00
Mike Bayer a774deb9a4 hey pyodbc fixed this, hoopde doo 2012-03-13 22:37:25 -07:00
Mike Bayer a0ff6eaf8a fix up docs a bit here, not sure if some enhancements had already
been made as things didn't seem as bad as [ticket:2306] indicated
2012-03-13 21:44:18 -07:00
Mike Bayer 0b393b4469 revert this, the instrumentation here is conditional 2012-03-13 21:14:39 -07:00
Mike Bayer bc3ea419b6 add most of Brad Allen's doc updates, [ticket:2434] 2012-03-13 21:07:09 -07:00
Mike Bayer bf57355fee - [bug] Fixed bug in C extensions whereby
string format would not be applied to a
Numeric value returned as integer; this
affected primarily SQLite which does
not maintain numeric scale settings.
[ticket:2432]
2012-03-13 20:38:30 -07:00
Mike Bayer 4d2c1e2f17 - [feature] Added support for MSSQL INSERT,
UPDATE, and DELETE table hints, using
new with_hint() method on UpdateBase.
[ticket:2430]
2012-03-13 14:00:05 -07:00
Mike Bayer 57868f587e - [bug] Fixed bug whereby a primaryjoin
condition with a "literal" in it would
raise an error on compile with certain
kinds of deeply nested expressions
which also needed to render the same
bound parameter name more than once.
[ticket:2425]
2012-03-12 13:35:27 -07:00
Mike Bayer 6c03a8ddd3 - add __table_cls__ option to declarative, not publicized yet, is for the moment
for the benefit of the test.lib.schema package.
- use test.lib.schema.Table for the table within test.lib.fixtures.DeclarativeMappedTest
- [bug] Removed the check for number of
rows affected when doing a multi-delete
against mapped objects.   If an ON DELETE
CASCADE exists between two rows, we can't
get an accurate rowcount from the DBAPI;
this particular count is not supported
on most DBAPIs in any case, MySQLdb
is the notable case where it is.
[ticket:2403]
2012-03-12 13:14:14 -07:00
Mike Bayer 5448f6129c - [bug] Fixed memory leak in core which would
occur when C extensions were used with
  particular types of result fetches,
  in particular when orm query.count()
  were called.  [ticket:2427]
2012-03-10 16:18:52 -08:00
Mike Bayer db69a48231 merge tip 2012-03-08 00:51:49 -08:00
Philip Jenvey 94e05e3d87 cleanup test_processors, modeling the PEP 399 style 2012-03-07 21:48:36 -08:00
Mike Bayer 8696a45b09 - [bug] Fixed event registration bug
which would primarily show up as
events not being registered with
sessionmaker() instances created
after the event was associated
with the Session class.  [ticket:2424]
2012-03-07 22:36:22 -05:00
Mike Bayer be71c73f61 callcount tweak 2012-03-05 15:20:07 -05:00
Mike Bayer 8007834c97 - [bug] Fixed bug whereby objects using
attribute_mapped_collection or
column_mapped_collection could not be
pickled.  [ticket:2409]
2012-03-05 10:24:15 -05:00
Mike Bayer 66377aaeaf fix typos, SQL server also needs union all 2012-03-03 13:10:37 -05:00
Mike Bayer fb83ddaff9 merge this 2012-03-03 13:01:14 -05:00
Mike Bayer 1607b74f85 - [feature] Added cte() method to Query,
invokes common table expression support
from the Core (see below). [ticket:1859]

- [feature] Added support for SQL standard
common table expressions (CTE), allowing
SELECT objects as the CTE source (DML
not yet supported).  This is invoked via
the cte() method on any select() construct.
[ticket:1859]
2012-03-03 13:00:44 -05:00
Philip Jenvey 4d43079e34 unmonkeypatch the 2to3 preprocessor so we don't disturb subsequent runs
patch from mcdonc
fixes #2421
2012-03-02 00:21:18 -08:00
Mike Bayer b5188631d0 this is 0.7.6.. 2012-02-29 19:18:11 -05:00