summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* specialize schema reflection warningspr/141ndparker2014-10-0510-25/+71
|
* - flake8 all of test/ext/declarativeMike Bayer2014-09-235-427/+543
|
* - The :mod:`sqlalchemy.ext.automap` extension will now setMike Bayer2014-09-223-7/+123
| | | | | | | | | | | | | | ``cascade="all, delete-orphan"`` automatically on a one-to-many relationship/backref where the foreign key is detected as containing one or more non-nullable columns. This argument is present in the keywords passed to :func:`.automap.generate_relationship` in this case and can still be overridden. Additionally, if the :class:`.ForeignKeyConstraint` specifies ``ondelete="CASCADE"`` for a non-nullable or ``ondelete="SET NULL"`` for a nullable set of columns, the argument ``passive_deletes=True`` is also added to the relationship. Note that not all backends support reflection of ondelete, but backends that do include Postgresql and MySQL. fixes #3210
* pep8/flake8Mike Bayer2014-09-221-42/+59
|
* - these tests don't test anything in SQLAlchemy - from our perpsective,Mike Bayer2014-09-191-133/+0
| | | | | | | we need to be in transactions (tested elsewhere) and we need to emit the correct FOR UPDATE strings (tested elsewhere). There's nothing in SQLA to be tested as far as validating that for update causes exceptions or not, and these tests frequently fail as they are timing sensitive.
* - Fixed bug that affected generally the same classes of eventMike Bayer2014-09-188-31/+231
| | | | | | | | | | as that of :ticket:`3199`, when the ``named=True`` parameter would be used. Some events would fail to register, and others would not invoke the event arguments correctly, generally in the case of when an event was "wrapped" for adaption in some other way. The "named" mechanics have been rearranged to not interfere with the argument signature expected by internal wrapper functions. fixes #3197
* fix testMike Bayer2014-09-181-0/+2
|
* - Fixed an unlikely race condition observed in some exotic end-userMike Bayer2014-09-182-1/+17
| | | | | | | | setups, where the attempt to check for "duplicate class name" in declarative would hit upon a not-totally-cleaned-up weak reference related to some other class being removed; the check here now ensures the weakref still references an object before calling upon it further. fixes #3208
* - Fixed bug that affected many classes of event, particularlyMike Bayer2014-09-184-15/+90
| | | | | | | | | | | ORM events but also engine events, where the usual logic of "de duplicating" a redundant call to :func:`.event.listen` with the same arguments would fail, for those events where the listener function is wrapped. An assertion would be hit within registry.py. This assertion has now been integrated into the deduplication check, with the added bonus of a simpler means of checking deduplication across the board. fixes #3199
* - Added new method :meth:`.Select.with_statement_hint` and ORMMike Bayer2014-09-186-6/+118
| | | | | | method :meth:`.Query.with_statement_hint` to support statement-level hints that are not specific to a table. fixes #3206
* - Added support for the Oracle table option ON COMMIT. This is beingMike Bayer2014-09-176-14/+90
| | | | | | | | | kept separate from Postgresql's ON COMMIT for now even though ON COMMIT is in the SQL standard; the option is still very specific to temp tables and we eventually would provide a more first class temporary table feature. - oracle can apparently do get_temp_table_names() too, so implement that, fix its get_table_names(), and add it to #3204. fixes #3204 again.
* - not sure what this is testing but remove the self.l that mightMike Bayer2014-09-171-2/+3
| | | | be contributing to pypy not cleaning up on this one
* - we can start checking these flake rulesMike Bayer2014-09-171-1/+1
|
* - changelog for #3203; fixes #3203Mike Bayer2014-09-171-0/+14
|
* Merge branch 'sqlite-temp-table-reflection' of ↵Mike Bayer2014-09-172-10/+36
|\ | | | | | | https://bitbucket.org/jerdfelt/sqlalchemy/branch/sqlite-temp-table-reflection into pr31
| * Handle sqlite get_unique_constraints() call for temporary tablesJohannes Erdfelt2014-09-172-10/+36
| | | | | | | | | | | | | | The sqlite get_unique_constraints() implementation did not do a union against the sqlite_temp_master table like other code does. This could result in an exception being raised if get_unique_constraints() was called against a temporary table.
* | - Added :meth:`.Inspector.get_temp_table_names` andMike Bayer2014-09-179-44/+205
| | | | | | | | | | | | | | | | | | | | | | | | :meth:`.Inspector.get_temp_view_names`; currently, only the SQLite dialect supports these methods. The return of temporary table and view names has been **removed** from SQLite's version of :meth:`.Inspector.get_table_names` and :meth:`.Inspector.get_view_names`; other database backends cannot support this information (such as MySQL), and the scope of operation is different in that the tables can be local to a session and typically aren't supported in remote schemas. fixes #3204
* | - move this to the correct locationMike Bayer2014-09-171-1/+1
| |
* | - comment this out (again)Mike Bayer2014-09-171-1/+1
| |
* | Merge branch 'pr128'Mike Bayer2014-09-176-4/+211
|\ \ | |/ |/|
| * - repair get_foreign_table_names() for PGInsp/dialect levelpr128Mike Bayer2014-09-176-23/+99
| | | | | | | | | | - repair get_view_names() - changelog + migration note
| * keep this off for the moment as jenkins isn't set up for this yetMike Bayer2014-09-171-1/+1
| |
| * - the actual round trip requires password authent set up for the user;Mike Bayer2014-09-171-25/+7
| | | | | | | | we don't actually need a round trip test here as we're only testing reflection.
| * - break out and fix tests for materialized view and foreign tables. foreign ↵Mike Bayer2014-09-161-72/+86
| | | | | | | | tables not working
| * Merge remote-tracking branch 'origin/pr/128' into pr128Mike Bayer2014-09-165-4/+139
| |\
| | * Added documentation. Changed my mind - added get_foreign_table_names() only ↵pr/128Rodrigo Menezes2014-09-056-41/+26
| | | | | | | | | | | | to PGInspect and not in the Dialect. Added tests for PGInspect and removed a bunch of the old test scaffolding.
| | * Added get_foreign_table_names to interface and put it in the test requirements.Rodrigo Menezes2014-09-054-2/+19
| | |
| | * Fixing some pep8s and adding get_foreign_tables.Rodrigo Menezes2014-09-034-9/+38
| | |
| | * Removed changes that are no longer necessary for postgresql_relkind. Also, ↵Rodrigo Menezes2014-08-262-3/+5
| | | | | | | | | | | | removed newline changes.
| | * Merge branch 'master' of https://github.com/zzzeek/sqlalchemy into ↵Rodrigo Menezes2014-08-2649-2013/+2538
| | |\ | | | | | | | | | | | | feature/postgres-relkind
| | * | Remove relkind from construct arguments.Rodrigo Menezes2014-08-261-2/+1
| | | |
| | * | Removed all mentions to postgresql_relkindRodrigo Menezes2014-08-262-51/+20
| | | |
| | * | Add a view synonym too for consistency.Rodrigo Menezes2014-08-141-1/+2
| | | |
| | * | Merge branch 'master' of https://github.com/rclmenezes/sqlalchemyRodrigo Menezes2014-08-1421-105/+415
| | |\ \
| | * | | Added support for postgres_relkind.Rodrigo Menezes2014-08-145-16/+149
| | | | |
* | | | | - Fixed the version string detection in the pymssql dialect toMike Bayer2014-09-163-1/+30
|/ / / / | | | | | | | | | | | | | | | | | | | | work with Microsoft SQL Azure, which changes the word "SQL Server" to "SQL Azure". fixes #3151
* | | | - raise from cause here to preserve stack traceMike Bayer2014-09-161-1/+1
| | | |
* | | | Merge pull request #138 from BY-jk/mastermike bayer2014-09-161-0/+1
|\ \ \ \ | | | | | | | | | | Added EXASolution dialect to documentation
| * | | | Added EXASolution dialect to documentationpr/138Jan2014-09-161-0/+1
| | | | |
* | | | | - cant do xargs in tox.ini as it doesnt run outside of postgresql/mysqlMike Bayer2014-09-151-1/+1
| | | | |
* | | | | - use compat.u for python3.2, fixes #3198Mike Bayer2014-09-151-2/+2
| | | | |
* | | | | - fix issue where nose Failure object comes into play hereMike Bayer2014-09-151-0/+2
| | | | |
* | | | | - remove some crufty old testing optionsMike Bayer2014-09-1411-97/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - reestablish the "bootstrap" system of loading the test runners in testing/plugin; using the updated approach we just came up with for alembic. Coverage should be fixed now when running either py.test or nose. fixes #3196 - upgrade tox.ini and start using a .coveragerc file
* | | | | Updated documenation for engines.rstpr/135Jim Hokanson2014-09-141-1/+6
| | | | | | | | | | | | | | | Clarified connecting to absolute path for sqlite using Windows.
* | | | | - Fixed warning that would emit when a complex self-referentialMike Bayer2014-09-113-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | primaryjoin contained functions, while at the same time remote_side was specified; the warning would suggest setting "remote side". It now only emits if remote_side isn't present. fixes #3194
* | | | | - Fixed bug in ordering list where the order of items would beMike Bayer2014-09-105-2/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | thrown off during a collection replace event, if the reorder_on_append flag were set to True. The fix ensures that the ordering list only impacts the list that is explicitly associated with the object. fixes #3191
* | | | | - for whatever reason, Insert.values() with multi values wasn'tMike Bayer2014-09-092-0/+28
| | | | | | | | | | | | | | | | | | | | in the 0.8 migration, so let's just add that
* | | | | - add in all the method-chained methods to the parameter descriptionsMike Bayer2014-09-091-43/+131
| | | | | | | | | | | | | | | | | | | | | | | | | on select(). improve some descriptions and add more info for limit()/ offset(), including new 1.0 functionality.
* | | | | - rework the previous "order by" system in terms of the new one,Mike Bayer2014-09-086-46/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unify everything. - create a new layer of separation between the "from order bys" and "column order bys", so that an OVER doesn't ORDER BY a label in the same columns clause - identify another issue with polymorphic for ref #3148, match on label keys rather than the objects
* | | | | - check for None linker...Mike Bayer2014-09-081-1/+1
| | | | |