Relationship Edges

Why items were connected. Excerpts are short and hashed; raw API payloads stay local.

KindSourceTargetConfidenceEvidenceEvidence Hash
referencesissue #13419pr #13398medium
Fix is to tokenise the inter-keyword whitespace with disjoint classes so a space only ever belongs to a separator and never to a token. PR #13398.
5438506bfae6788939d085b934c6a38ec5025f49ae5697eb445b93df01cfeb88
referencesissue #13357issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [x] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Describe the typing issue the runtime SQ...
b6af024d295fe4523765892156245d9e94053d262e6a89b5b817c4c80c6554f3
referencesissue #13227issue #12168medium
dation introduced in commit [95ad9fe](https://github.com/sqlalchemy/sqlalchemy/commit/95ad9fe42b888d7cdea60b7a71c833cbb8667887) (related to #12168) breaks `WriteOnlyMapped` relationships that use `default_factory=list` in Declarative Dataclass Mapping. ### Optional link from h...
416800bfd2ad52b0df2743f058ec1540841d1782647bd5e54b0c83bc655057ea
referencesissue #13212issue #4384medium
it's #4384
608257f83fcd4eb21d244e469a1756dd4afae38a6b9ea9deea208d149aea9439
competes withissue #13210issue #13193medium
namespace.") > print(" Use ap.meta (base-class direct) instead of ap.Dog.meta.") > print("=" * 70) > ``` _Originally posted by @CaselIT in [#13193](https://github.com/sqlalchemy/sqlalchemy/issues/13193#issuecomment-4145377493)_
f126815a8d44ecba56ca77044d109a535870c3c84161fe740f6fefc7e1d40413
referencesissue #13204issue #13193medium
There are a couple of cases where immediateload fails when using inheritance on relationships: - loading using immediateload a relationship on an inheritance chain that's being loaded via eager loading: `select(Meta).option(anyloader(Meta.parent_cls).immediateload(ParentCls.re...
d6af10a01c4ee0b2ddd96c96d6dd926659a632a831f4840c75ab65e66fc64d2e
referencesissue #13204issue #13202medium
There are a couple of cases where immediateload fails when using inheritance on relationships: - loading using immediateload a relationship on an inheritance chain that's being loaded via eager loading: `select(Meta).option(anyloader(Meta.parent_cls).immediateload(ParentCls.re...
d9a355cb09796333911efbbd7d89389df5d8d79dff5a19b2f0e677a81c853616
referencesissue #13157pr #13188medium
Fix submitted in #13188.
ada55c738bd7c92e605adf592e0af4304c58d91d245fa81b6e2c9bcf41c43c32
referencesissue #13007issue #13006medium
Follow up of #13006 Set to False the default value and remove the warning
08a3a0f3008e5ad03d320153a4b167d40723e7db07a096ac2f297b805e5dc279
referencesissue #12398issue #10668medium
### Describe the use case I just received the following error of in my project and have an improvement request similar to #10668 : ``` sqlalchemy.exc.InvalidRequestError: Loader strategies for ORM Path[Mapper[Cable(cable)] -> Cable.cablesides -> Mapper[CadCableSide(ca
07ceea06d0f1bb244249ac24902ba1dd7392e1e6bc595e75652f640133c4aefd
referencesissue #12101issue #5583medium
### Describe the use case The [Postgres docs](https://www.postgresql.org/docs/17/sql-select.html) specifically say that you should be able to have both a FOR UPDATE and a FOR SHARE in the same query: > Multiple locking clauses can be written if it is necessary to specify diffe...
bf6e8cce81a4e4ad031c254f2be259769d213b550fd5865ff2541cf9300ffea9
referencesissue #12101issue #5583medium
eems like contains_eager() + join() is more appropriate here. 3. you're asking something about the very open ended warnings/error ticket in #5583 , I guess saying that the warning we have about FOR UPDATE doesnt apply to joinedload() if one is using "of". I'm not really sure i...
17c075eae174372b9d516a0535f376d64013cfe63319a93676e646945ce4e8d2
referencesissue #12097issue #6515medium
### Describe the bug I can't use an enum type as part of a `case()` without casting. Looks very similar to https://github.com/sqlalchemy/sqlalchemy/issues/6515 ### Optional link from https://docs.sqlalchemy.org which documents the behavior that is expected _No response_ ### SQ...
d6e79d43b2f87411acce577b2cf3ca68a1757872a452446adf58cfc92d854ce0
referencesissue #11686issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [X] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Describe the typing issue An unexpected...
9cc73297c82d8d32cb900e1a3d8d7f70ccf7e50efab470ce5bbc458ff2ebcccf
referencesissue #11677pr #11678medium
I openend a PR to fix this issue https://github.com/sqlalchemy/sqlalchemy/pull/11678
9e0b49d5448c315c6fd4d9122fa60aca6f1eca0749a1376d93a29f067cdfa3b6
referencesissue #11620pr #12297medium
I've posted an alternative strategy that I'd like to use, detailed on the gerrit and also on the PR at https://github.com/sqlalchemy/sqlalchemy/pull/12297#issuecomment-2733436569
d33380533bafdb0eafe088320cf5a1205e00dd6082ea55c4ed4db7d3487562b8
referencesissue #10936issue #1063medium
I thought this was related to #1063 but i dont think it is, unfortunately, meaning we have *two* post_update quagmire kinds of issues.
ff2f157a0104101412fa05baf83be57e5c834ee97522d8588382577d696d898b
referencesissue #10888issue #6810medium
checked it off from this list https://github.com/sqlalchemy/sqlalchemy/issues/6810
3eccacb1573ec32ea9f2b62aa24ea620fa5a223de2497afa639acd5f9210c46e
referencesissue #10859issue #4641medium
this can come in alongside #4641 this would make a change to `relationship` such that it does not set up `strategy_key` until mapper config stage, where it gets a look at i
4fa3c8f29c672e31a3f31e7da50b97ba1b44a32567b8767fa09bf25914eea3ee
referencesissue #10675issue #8626medium
ted SQL is valid; migrating the from_select case off the deprecated form (e.g. via the documented derived-table alias) seems to belong with #8626. Perhaps this one can be closed as fixed?
442258191ff3c9cb059d2017041605161b946d2176fc45574c0afd12bb3c0d19
referencesissue #10544pr #10545medium
try this pr to fix https://github.com/sqlalchemy/sqlalchemy/pull/10545
3e9735aae1d10aeed55e137904c1f9bd9525d9e78dc227534f6432febada58b5
referencesissue #10527issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [X] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Describe the typing issue Seems that `wi...
ca892f55a8ea3033aaff2fe75b100d85688e7c668c5fd04a3159ca754a8d06f6
referencesissue #10351issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [X] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Describe the typing issue Return type `c...
febd269ba982be5754112533d6f642aad4040a0d39bc266a4eaedb789fde186f
referencesissue #10351issue #6120medium
> though column_property() does not accept calalbles or lambdas, so still need to reduce that there was an issue for it in https://github.com/sqlalchemy/sqlalchemy/issues/6120
092642d30898c4a51a388cee4788856af8f73304d2191976f09152e65992762b
referencesissue #10094issue #5811medium
I've been missing a documentation regarding testing with async, I eventually got it to what I wanted but I don't entirely understand how it works. I've read through [this discussion](https://github.com/sqlalchemy/sqlalchemy/issues/5811) and arrived at this slightly shorter ver...
17c764e9c78ef099a9c681fa259465b3d34089012642f5fcdc4aa0e112e4157b
referencesissue #9839issue #9603medium
### Describe the bug We upgraded our sql alchemy version and observed a massive spike in execution time on the database. We are bulk uploading several 100k rows. We are using sql server on azure and pyodbc. We believe it relates to changes made in https://github.com/sqlalchemy...
7e31b5a59b11bf53917b4a3bd010250dd36a2bc7ed020bcc169c90145e20b042
referencesissue #9839issue #9618medium
### Describe the bug We upgraded our sql alchemy version and observed a massive spike in execution time on the database. We are bulk uploading several 100k rows. We are using sql server on azure and pyodbc. We believe it relates to changes made in https://github.com/sqlalchemy...
0043375355e3832918f3256ccc3f7ac1ce10f88aad9b3bd511a5c6d0d1cddc57
referencesissue #9839issue #9603medium
he database. We are bulk uploading several 100k rows. We are using sql server on azure and pyodbc. We believe it relates to changes made in #9603 <https://github.com/sqlalchemy/sqlalchemy/issues/9603> or #9618 <https://github.com/sqlalchemy/sqlalchemy/issues/9618> which were i...
966c7562f852a532fe7460aada50914eb4b1d12d1179c5f6a0bdc52467c759ba
referencesissue #9839issue #9618medium
ng sql server on azure and pyodbc. We believe it relates to changes made in #9603 <https://github.com/sqlalchemy/sqlalchemy/issues/9603> or #9618 <https://github.com/sqlalchemy/sqlalchemy/issues/9618> which were implemented in 2.0.10. We are no using the ORM, but execute direc...
8d3ad4d82c8c18fb087fda45f75cd2e3b5e480988fd71c2be1dc816ee39639ff
referencesissue #9839issue #9586medium
faster than plain executemany, but still order of magnitude worse than fast executemany** performance. We can see this using the test from #9586, using the dataset at https://github.com/sqlalchemy/sqlalchemy/files/11130278/test_data.zip and the script below, which I've improve...
630196046d1345f502f6005002a1dc7811442b102d5f4780a49be0abd6a40870
referencesissue #9839issue #9603medium
0 rows in 0.1 seconds (17273.9 rows/s). SQLA: 2.0.15; imv=False; fast_em=True: Finished in 2.4 seconds. ``` When using 2.0.9 exactly, issue #9603 was released which **universally disabled insertmanyvalues** for SQL Server. Based on everything we know, **this means default perf...
0fdf498e3d52c13988631ff4b24aa75f92e382bd4b8f8ab9899de07cfbde2fdf
referencesissue #9839issue #9603medium
nsertmanyvalues" completely in version 2.0.9 of SQL Server alone. it was turned on in 2.0.8 as well as 2.0.10. the 2.0.9 shutoff was due to #9603. im not really sure how if cloud DBs have expensive round trips that plain executemany() is better, there must be some driver level...
528fb380c65653a55798c0e7739b755d4df88a583e62926e3107f9ee1fd72fb0
referencesissue #9690issue #8285medium
for the column slice thing, super huge omission from #8285. needs an extra isinstance
f0b846ecb519431a598505424cbabbe2629bc8c12ed274da4a0feed8bf117e07
referencesissue #9587issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [X] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Confirm this is not Mypy dataclasses iss...
8f0ab012bcaefbb9dcc8fde82aebd9ec9c8df0924510f8c708fbb24da29daaf5
referencesissue #9493issue #9350medium
We also seem to make inherit dataclasses attributes, while we probably should not. Not sure if it's connected to this other issue #9350 ```py from dataclasses import dataclass import sqlalchemy as sa import sqlalchemy.orm as sao import inspect class Base(sao.MappedAsDataclas
f8076fc7d0dcdc0caf479d2dd1902d754d6d52303e877db2ec988e937c80470e
referencesissue #9493issue #9410medium
We also seem to make inherit dataclasses attributes, while we probably should not. Not sure if it's connected to this other issue #9350 ```py from dataclasses import dataclass import sqlalchemy as sa import sqlalchemy.orm as sao import inspect class Base(sao.MappedAsDataclass,...
7da7fa4bf320ac783e00f5247a2ede72640cfa78056a56b13cd1bb7503731229
referencesissue #9410issue #9563medium
nit generated. this all comes from dataclasses, but it may be worth reiterate that 4. mention that all the dataclass limitations apply. see #9563 also 5. #9785 , back_populates / recursion issue 6. when using mixins, it is likely a good idea to use kw_only on those fields so t...
9b6db4545aaf428753491c4e682f91aee96491313572cf0eb87e8a93c8aa9846
referencesissue #9410issue #9785medium
this all comes from dataclasses, but it may be worth reiterate that 4. mention that all the dataclass limitations apply. see #9563 also 5. #9785 , back_populates / recursion issue 6. when using mixins, it is likely a good idea to use kw_only on those fields so that they are no...
5bf4fd8898c49821d0a2a9c08b01149c5a9c38bdb880b5a924ffbae32ea057c0
referencesissue #9410issue #12168medium
1. relationship = None issue : #9383 , #9856 - issue created: https://github.com/sqlalchemy/sqlalchemy/issues/12168 2. declared_attr on a mixin w/ dataclasses: #9408 3. order matters regarding the default value and init generated. this all comes from dataclasses, but it may be...
ba5a0365721007562e43ce750cb449600932045425b3815e98136ca7b4eb706e
referencesissue #9410issue #9350medium
We also seem to make inherit dataclasses attributes, while we probably should not. Not sure if it's connected to this other issue #9350 ```py from dataclasses import dataclass import sqlalchemy as sa import sqlalchemy.orm as sao import inspect class Base(sao.MappedAsDataclas
a7323bb4ce0f34aed7725f869799a299a1b3771c5a977eab22cdff1010cf0a22
referencesissue #9410issue #9785medium
Maybe also: - #9785
0f0de7c8e307a01172f3cc983bf57fea8a684f31dbd26dc48265cb7bf49606e9
referencesissue #9410issue #9785medium
> Maybe also: > > * [Using back_populates with MappedAsDataclass and asdict causing RecursionError #9785](https://github.com/sqlalchemy/sqlalchemy/issues/9785) sure. would be good to find if this has been reported as a dataclasses bug though
e9a7edbb51c0fbb8e7d03b064b9330f51b825c0e6c00d0b07c37b43267da66a3
referencesissue #9410issue #9785medium
> Maybe also: > > * [Using back_populates with MappedAsDataclass and asdict causing RecursionError #9785](https://github.com/sqlalchemy/sqlalchemy/issues/9785) added to the list in the OP
ac8450cd750d88d9ca2b2d4e7346f082fe9ed5fc80b5375bf1c4c4b0ae258393
referencesissue #9410issue #9927medium
#9927 I encountered this one. I am trying to use dataclass-only fields for some state things (i.e not mapped). The state variable should always b
a89a9f0c7bf2fa5fd2f9fe35d14f25d8509ac9bd2eb66bbc0989f876c87f61c7
referencesissue #9410issue #9927medium
> #9927 > > I encountered this one. I am trying to use dataclass-only fields for some state things (i.e not mapped). The state variable should alwa
df46103bd062da4b2463301e827b7759968c3d338d610bea7dd705a2b063e9ea
referencesissue #9410issue #9930medium
> #9927 > > I encountered this one. I am trying to use dataclass-only fields for some state things (i.e not mapped). The state variable should always be created on object creation using the `default_factory` option. This works when creating the object and persisting, but if yo...
6aa77c0a8b6c929cac5e67b861c4fd336fb5caba5d81075396b493391fac72fc
referencesissue #9301issue #6120medium
I guess https://github.com/sqlalchemy/sqlalchemy/issues/6120 could help reduce the need of this. In any case it's probably best to just document the TYPE_CHECKING version
d289d65b6458f7d56065c6c4619d8fa94a00ae33e4dddd5abc0411fd02d2b1d9
referencesissue #9301issue #6120medium
OK, column_property() is not mapped_column(), yeah I think let's document for now. i dont know what will happen with #6120 , added some notes there.
7e042644bd11e611ba9c18d395a6a3bc760bebc00d3e78bccf165103980a14b4
referencesissue #9212issue #9213medium
in the narrative docs at https://docs.sqlalchemy.org/en/20/orm/declarative_mixins.html . it just needs the `@classmethod` part discussed at #9213. I think we have actionable items on #9213 but for this one i dont see the action to take, other than maybe some more supplementary...
ae0f421cec53604dd2d04d59cd343e4561bab2d6a1d2d0e7b76ecc0127c1e1e1
referencesissue #9212issue #9213medium
in the narrative docs at https://docs.sqlalchemy.org/en/20/orm/declarative_mixins.html . it just needs the `@classmethod` part discussed at #9213. Yes, retrying with those changes, I've got it working. It's still not clear to me what generic type I should be using for an annot...
6100c6531a0dae5875a8398ff5894b968f4fa0eee7b8c532e833a5147559d650
referencesissue #9154issue #8762medium
r pypy? at some point we had to take pypy out of the testing pipeline Yes. I have two marked as failing in 1.4.46. One of them is linked to #8762, so might have been fixed already. The other was an exception message mismatch that I probably didn't report. Unfortunately, the te...
7d8d9ed321cb0b04e5587d49886261fd766e7e35406eb9ef4f15d323f7525427
referencesissue #9147issue #9832medium
the event hook here: https://github.com/sqlalchemy/sqlalchemy/blob/689ebc30dcd6b9cedf01d729f748b31826720b5c/lib/sqlalchemy/orm/decl_base.py#L567-L582 that's making a global event against Mapper. Declarative should make at most just *one* event hook against Mapper, then use its...
2a0fb580bcb3916223f6c8a5ea029d9fa15d3ce1c00befe4b5122f8e66805010
referencesissue #9147issue #9832medium
not sure we really need this but in any case depends on #9832
ab3a692c29a9dc2a749adccf5b8588fb317205c32c0216f36f322d0ae22ec6e0
referencesissue #9082issue #8889medium
"auto" was added in #8889. i see this issue refers to "auto". nobody anywhere is going to put "eager_defaults=False" so this is a really non-impactful issue
f6bb8a11bdf770f7b0d1d113db5a9e835ec2ab601d7ee0c8b276f3ceed437849
referencesissue #8992issue #8989medium
discovered during #8989, this is simply not implemented at all and the bind expression is ignored when it's an element of a tuple. Also, the impl of a TupleType()
46c36af5913ed4eacd3c91b7bbfe671ecce76e43945986c60a3484702423ff7b
referencesissue #8431issue #4340medium
in #4340 21fbb5e38f04affb8ac4502428672b3a629c we implemented "omit_join" behavior for the selectinload loader strategy. We currently don't have this
be4402f25acc07f124af834cc472d01f0ce93a1dab7e9b2e830cb1cdabac7701
referencesissue #7718issue #4379medium
scussed in https://github.com/sqlalchemy/sqlalchemy/discussions/7717 this is very trivial and I think we will be able to make use of it for #4379 in any case: ```py from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import MetaData from sqlalchemy im...
2cd630fe6d98a397f5edef48e378cf59644ae84f32b281f302d6d65d94107318
referencesissue #7475issue #8574medium
isables the key generation. > > I guess support for this could also be something could be added while updating this issue this was fixed in #8574
28f4bc9847f9f7c094b5fb92c6cd8c6d06557baf9d89b1bfa8ade97a731923e4
referencesissue #7366issue #3861medium
### Describe the bug I'm getting duplicated index objects in the `MetaData` when using `DeferredReflection`. I think a similar issue might've been fixed in https://github.com/sqlalchemy/sqlalchemy/issues/3861. Similar problem has been reported in https://stackoverflow.com/ques...
2e7d032f1638d66b0e7cdc29f6cb343737dff5fb8f2c4642346db74f964741b3
referencesissue #7366issue #8925medium
what this issue is about, this issue is about constraints which are a totally different story. the extend_existing not deduping on name is #8925.
78927e68ee67bcd9d85b529707d67f214e0655e0acdeeffb040c0255cc7bf03d
referencesissue #7223issue #7212medium
Interval is an emulated type, that also subclasses `TypeDecorator`: https://github.com/sqlalchemy/sqlalchemy/blob/7f8bf038b753d3f250e0e974102c16037d1aea5d/lib/sqlalchemy/sql/sqltypes.py#L2026 This is different from the other emulated types, like Boolean and Enum, so for v2 it...
2a739c8ae6f9847b9cc92bcc42c8b20336391c2f99a707dfa83a85e5d17738cd
referencesissue #7113issue #4797medium
i mean also, "with_hint()" is badly named. "with_table_criteria()" is a better name _Originally posted by @zzzeek in https://github.com/sqlalchemy/sqlalchemy/issues/4797#issuecomment-930432024_ perhaps we can generalize with_hint() into with_table_criteria() and then introduce...
50e63eb4d468685fec040fcaa2af270b82315d792dcc6482f0724f6a049322eb
referencesissue #7113issue #4797medium
"hints" like indexing hints. other kinds of per-table constructs are placed differently, such as the for_system_time() we are looking at in #4797. So where with_hint() sends these three indicators of intent: * subject table * text that is to be treated like an indexing hint or...
89e934eead9c2694cb06fab9d5a4e9b1bb65448b5a42b79e2d873a19a103639f
referencesissue #7113issue #6040medium
this is related to #6040 as well and this could supersede it (that is, we wouldnt' have to do #6040 as written, with_hint would stay the same). i dont necessarily w
56d7ce3c7e84b5ce242d91706255611b6310561f64f25f363a8fbe7b80141570
referencesissue #7035pr #7009medium
Follow up from the discussion is https://github.com/sqlalchemy/sqlalchemy/pull/7009
b8edf9fc581ea46cec663713f306e2a7bef10a64f63cef291b15e447a94c85b7
referencesissue #6997issue #6550medium
yeah it's #6550 and the line that makes this test case "work" is to reintroduce a clear bug: ```py diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalc
3f8a2010611d5690759e89811881bce5dabdbe359ee47438b15f4dc1d5d54ff4
referencesissue #6810issue #7519medium
related issues: #7535 #7519 #7562 #7555
a94817bcb124b28ea4a4cb3f9602542f33c5358e01bbee372e0507b6416d0e63
referencesissue #6810issue #7535medium
related issues: #7535 #7519 #7562 #7555
d4aaebc5c78c4a4b079f6de04e8d2ec772f842bc827838aecc742bfbb7f1f8d4
referencesissue #6810issue #7555medium
related issues: #7535 #7519 #7562 #7555
86a8c38658bfe444b962d2f4fc6d64ed3732aa4a908bf0648049d1b015d09405
referencesissue #6810issue #7562medium
related issues: #7535 #7519 #7562 #7555
6745f63f6542c2f5a3f4a02a547444ae9bdc3eb2d982a0b3f8d8cced22af3d0a
referencesissue #6810issue #7774medium
ensure assocaition proxy collection implement typing.List/Set/Dict, see #7774
f9df48673284f4383ff4a733920118d8d97a587b346e89c872f38fe3ed900bd2
referencesissue #6810pr #12384medium
I started to work on the `postgresql` dialect, first PR https://github.com/sqlalchemy/sqlalchemy/pull/12384 about the `array` module.
f6ac59568cc3c2c9f51ff0c63f889bdaa2048955b40a374c358e7a5434c2b6d3
referencesissue #6810pr #12707medium
Hi @CaselIT, When you have a moment, could you please review my [PR for `sqlalchemy.sql.base`](https://github.com/sqlalchemy/sqlalchemy/pull/12707)? Once it's acknowledged, I’d like to plan follow-up typing contributions for another untyped module( [`sqlalchemy.sql.crud`](http...
ac0bc5840d337138bb5f3e8e1afc380e5ea1e5f43025253a6c0bdff304180daf
referencesissue #6810pr #12759medium
Hi @zzzeek, @CaselIT Sorry to interrupt, but I’ve run into a typing-related question while working on the compiler module. I’ve opened a **temporary PR** to explain the issue and provide context: **Temp PR:** https://github.com/sqlalchemy/sqlalchemy/pull/12759 Would appreciate...
20604fad3923d47bc94c818a11be233a515589bba4611ae0d1a92bb812ad0415
referencesissue #6612issue #5256medium
Hi, I remembered asking a similar question. Here it is: https://github.com/sqlalchemy/sqlalchemy/issues/5256 tldr: you can use `.self_group()`
4f25441a9414f48a6ae7ca3c7cc1804700050c6f2c03aa5e4efbd23ccd552cb5
referencesissue #6612issue #3566medium
nks, I did not find the existing issue via search, but maybe my search terms were inadequate. Since your issue was closed to be tracked in, #3566, which in turn is marked resolved, should we keep one open as use case? Other than that, feel free to close.
bb574eebf4accfee90b97bac6bb48ffb38baa12807e20f718e164c6345d76a1a
referencesissue #6612issue #3566medium
s, I did not find the existing issue via search, but maybe my search terms were inadequate. > Since your issue was closed to be tracked in, #3566, which in turn is marked resolved, should we keep one open as use case? Other than that, feel free to close. Don't worry, searching...
98cea930c0dfe68467daf5ad430f7875f62fc2e83b94b62c2d2fa91c7b0cdd3f
referencesissue #6612issue #3566medium
in #3566 it wasn't that clear to me what was going on but in this case I'd want to see if row valued types can signal to the compiler and/or express
200739e1b639c2e2377c8975f2819b84d36089fe843b5a9bbbd95b792c2cad6c
referencesissue #6612issue #5256medium
this is an example: https://github.com/sqlalchemy/sqlalchemy/issues/5256#issue-600623503 ```sql select * from some_table where some_table is not null ``` vs ```sql select * from some_table where not (some_table is null) ``` the return values is different if a row has all null...
aba04a72b7065614496b4568f6e340647dd8eb931de59224bc70545e4d7db692
referencesissue #6511pr #12510medium
In https://github.com/sqlalchemy/sqlalchemy/pull/12510, I am proposing to an implementation for PostgreSQL. On SQLite, AFAICT, this does not seem possible as the `table_info` or `table_xinfo` pragmas apparently do not return the collation information. (On other backends, I don...
7612279ea163b2a36aa13bc4d5aedb5dbcdb37a7858195b36a2f873188688fc1
referencesissue #6489issue #3357medium
as discussed at #3357, an additional execution option `dbapi_autocommit=True` that sets autocommit independently of setting an explicit isolation level would be
8ff3c555b9f2423a7d9baa5842fc200942813615af74e0c9cbc5377c84d03cc3
referencesissue #6120issue #3050medium
I originally wanted to do this in #3050, which got marked as a dupe of #3150, which allowed column_property to work with declared_attr, however, never added the lambda part of it.
d6043b3c5e5eb760d2d1e5e5dda8c0f1e069480dcce8d9be6c35e88ae11d9bc8
referencesissue #6120issue #3150medium
I originally wanted to do this in #3050, which got marked as a dupe of #3150, which allowed column_property to work with declared_attr, however, never added the lambda part of it. there was some reason that using lam
4ef91175f586af8fc0706eb90b25acc883b7b3a6c4c0732fe8319acf5aad08e7
referencesissue #5583issue #5578medium
From Mike: this is not a v2 thing, this is all a right now thing. 1. all backends should be raising an error when a user behavioral intent that cannot be fulfilled is received by a dialect, so first off, the for_update_clause() in compiler.py should be looking at all of these...
43b337203449b6ffcbeeebd4140b0bc78a9429f3b5a59e9619566b4600bba140
referencesissue #5352issue #4250medium
` operator is supported in SQLAlchemy. So the statement `SELECT ~a.flag AS anon_1 FROM a` works and gives correct results. I've come across #4250 which seems related. ```py from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative...
e52020d3fd0708eec18c9105a092d01b85cc7a4c85337b5ebff365ad86f645db
referencesissue #5352issue #4250medium
hi there - how interesting that the exact test case from #4250 is still failing though I would assume in a different way from what was fixed there. this limitation has more to do with SQL Server not bei
d0e0973f42a5107dc8c1bd251d3913dab08f08188b55087c50723927b116baaa
referencesissue #5350issue #3989medium
I've read https://github.com/sqlalchemy/sqlalchemy/issues/3989 but this seems unrelated. When defining a `ForeignKey` on a SQLAlchemy model, if the referenced column is given as a string (`{table_name}.{column_name}`) and the `Base.metadata` has been setup with a naming conven...
5972bb2c571f399892edd00a843c01f3f22162699af8e979c1f0899e29f2f791
referencesissue #5350issue #7706medium
the `ForeignKeyConstraint` separately via `__table_args__` works like a charm. I'd note that, when I saw this, I though that it could solve #7706. But, I still get `NoReferencedTableError`, so I assume there is in fact no way to use `referred_column`, unless you construct all...
52d7a18a4228166359944e7023eed67c299308d5d51a325e6bcb901fb83aec8d
referencesissue #5123issue #3692medium
I have a `Session` model with a `hash` column of the `Binary` type, and a `User` model with a relationship of `sessions`. If I get attributes through `inspect(user).attrs`, calling `attr.load_history()` on the `sessions` attribute will cause this [string argument without an en...
47cd105d237e37c61dd3ffa204d22a8f68fa72f6f11762693b11b689346dee08
referencesissue #5005issue #5068medium
suspect #5068 is seeing the same thing, although in that issue the warning call is being emitted incorrectly as this warning has failed to be part of tes
2a2e20c4f9f7580148f1cb76e4c0a376eedf9fb27f03d07d6b380a3a676dfc9d
referencesissue #4790issue #4784medium
There are a handful of messages that could be improved. 1. `sqlalchemy.exc.InvalidRequestError: Naming convention including %(constraint_name)s token requires that constraint is explicitly named.` This doesn't give much of a context. Suggestion for improvement: Extend message...
b9ac29948f155235dbd3ff38cdc1712dbae235a24e0d2cd7c0e70ea745e57177
referencesissue #4790issue #4784medium
ok, here we go again... > for 2, when does it raise that error? This was an edge-case you discovered in this comment- https://github.com/sqlalchemy/sqlalchemy/issues/4784#issuecomment-516582228 > I don't understand the extra context you are adding in 1. wouldn't they want to k...
80cc2c0f3542e192c1c89a8f6faf604ce69e95399ef910f26e254e54d480c48b
closesissue #4790issue #4784high
**jonathan vanasco** has proposed a fix for this issue in the **master** branch: **Fixes #4784 regarding constraints:** https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/2224
a3a655fd2257ef94dd89fad84f4ea7da479ff9bd0fa823f2bb9d8b2e14205148
referencesissue #4784issue #5151medium
Note: perhaps use the enum listener example in #5151
4755062d1415cf09bb4263b99b28d7ab58c9a0be01916ef7c506960fbe3ba1a4
referencesissue #4652issue #3155medium
for [Column](https://docs.sqlalchemy.org/en/13/core/metadata.html#sqlalchemy.schema.Column.params.server_default) and a couple issues here (#3155,#3444), it's still unclear how to "correctly" include an explicit "ON UPDATE" clause. The only solution I have come to so far was s...
7091d0690f411f24f8b11e545157d276113f15ec5899800865ca62804a5f736f
referencesissue #4652issue #3444medium
olumn](https://docs.sqlalchemy.org/en/13/core/metadata.html#sqlalchemy.schema.Column.params.server_default) and a couple issues here (#3155,#3444), it's still unclear how to "correctly" include an explicit "ON UPDATE" clause. The only solution I have come to so far was specifi...
b2fae7f6d189d6d3ac05440064fbc7b073e638a9420417585a3b72fa6ece71db
referencesissue #4652issue #3155medium
for [Column](https://docs.sqlalchemy.org/en/13/core/metadata.html#sqlalchemy.schema.Column.params.server_default) and a couple issues here (#3155,#3444), it's still unclear how to "correctly" include an explicit "ON UPDATE" clause. > > The only solution I have come to so far w...
2c508532add8eb8a6b9cb8419b946c56a1574b51cd1626ed76e6f8f586d4f43e
referencesissue #4652issue #3444medium
olumn](https://docs.sqlalchemy.org/en/13/core/metadata.html#sqlalchemy.schema.Column.params.server_default) and a couple issues here (#3155,#3444), it's still unclear how to "correctly" include an explicit "ON UPDATE" clause. > > The only solution I have come to so far was spe...
f563149d0f6cbe61e526f83bcbbaca7ab4a92bab767e75b39283f5f169345a5b
referencesissue #4641issue #4640medium
with #4640 we are going to start adding mapper flags that folks will want to be able to apply across the board. so to make this easier without the nee
f4a03b391bcfc9c72613f3f90008d3099b0c5c43d6308a90b7dcdbce1c6dbd3b
referencesissue #4567issue #4360medium
to be ignored on the table slippy_tiles but nothing seems to take when creating the schema from ORM, even though it is supposedly fixed in #4360 I've tried renaming the kwarg in the column definitions to sqlite_on_conflict_primary_key, sqlite_on_conflict, on_conflict, editing...
c9f080d74242225e224317e71bbae1dff8e8de902467705e1acec704a5d69495
referencesissue #4289issue #3989medium
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** note in #3989 we don't truncate naming conventions for things other than indexes.
2a2ff5f4f2087393917aca91e4535d41da63cec84bb0ac58c350cdad1f4d259f
referencesissue #1063issue #3990medium
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** Issue #3990 was marked as a duplicate of this issue.
5c17de2e384aa534011ab01aab6e73b9be174822a285c21303f68440e83d287b
referencesissue #1063issue #3496medium
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** as tihs would also fix #3496 I'm motivated to work on this, but I'm struggling. https://gerrit.sqlalchemy.org/427
1f896a059c727a29e8fb06cc21f10cc6d37f3bd0ce9a926417b8152a8c1208a0
referencesissue #12730issue #6810medium
chemy-stubs` and `sqlalchemy2-stubs` are not compatible with v2) ### Verify if the api is typed - [x] The api is not in a module listed in [#6810](https://github.com/sqlalchemy/sqlalchemy/issues/6810) so it should pass type checking ### Describe the typing issue When passing m...
3842d0eec177fae874259fa4e9ea3e33a879e328b11d034e013224deadda18ad
referencesissue #9618issue #9603medium
ne in https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4548. Among other things this will be a real solution to the problem faced at #9603 and will also be a hedge against any other database where we can't guarantee INSERT ordering. for use_insertmanyvalues, it then bec...
275bc98ada6d49989345e61ebf9f2d01d61290bb1a826bbaaad6ec6f9492c7ec
referencesissue #9618issue #9603medium
ning(table)", something like that 4. limit the use of insertmanyvalues **just in the unit of work**. after all that was the issue we had in #9603
09c040e81bdeaca0358effa59681e4df6040d3c0b8da7be8a8736504a8ccbb45
referencesissue #9618issue #9603medium
y, meaning if that order is off, any situation where those objects have further collections on them we'd be seeing the issue like we see in #9603. That's tens of millions of downloads per month where we would assume applications have tolerated concurrent VACUUMs and things lik...
b283236773c64ef1bd5167c56f142f85e7a8327de35e52c6b99be54049ade30d
referencesissue #9603issue #9618medium
doing a lot of thinking over at #9618. I think we can definitely restore MS-SQLs "insertmanyvalues" feature as long as we dont use it in the unit of work to match up primary key
8f2b5ac1afb6546a0cb8a56a1face423d713f2570269c2c95a9e327b810240ba
referencesissue #9563issue #9410medium
s or similar dataclass limitations gets reported, so maybe people are not that familiar with them? In any case i've mentioned this issue in #9410 regarding re-raise we can decide later, since it's easy to add, not that easy to remove
a87dfd77e9c7ebeb1cbccc83ff4fdbf9ea394e9b70f9e682effbc302a3ff2f44
referencesissue #7774issue #6810medium
otation to an association proxy in all cases. whether or not associationproxy accommodates `Mapped[]` right now will be resolved as part of #6810, you can use a cast() in the interim: ```py from sqlalchemy.orm import Mapped class Parent(Base): __tablename__ = "parent" id = Col...
d91ccb3c45294a659d2db985ac618146ffca9ff9b3821c260d12aa0dcc093cf5
referencesissue #7774issue #6810medium
erialization. Here you're looking for AssocaitionList/set/dict to implement the appropriate typing collection. This will be done as part of #6810 in 2.0.
31dd4ed3777db58146ebd086102cdbfaae9967c91b5624762c575ca5a1c24133
referencesissue #7774issue #6810medium
Hey, i'm not if this is the correct ticket to place this, so please tell me if not. According to https://github.com/sqlalchemy/sqlalchemy/issues/6810, the association_proxy (so probably also the AssociationList) is already fully typed. But in this case, shouldn't `tags` be suc...
09fe6be2119eee9006741ec26ab30e864b1409e458d87a33a575401cb4a0af93
referencesissue #7706issue #5350medium
Ah sorry, I guess this may be a duplicate of #5350
82c1a816e027b666cc3b204fc6caf30893bf626d36bce2e7b80651255ace6baa
referencesissue #7659pr #8136medium
Alright, started a draft PR here for discussion https://github.com/sqlalchemy/sqlalchemy/pull/8136
21d30cde20323ca02f40a17cb515a18a41b017ee4a6bab4b1910329b697deeb3
referencesissue #5578issue #5583medium
Thanks for the great explanation mike. I've taken the liberty of creating a new issue to track this. See https://github.com/sqlalchemy/sqlalchemy/issues/5583
ef8f51719f405bfe5f711673830d9ee64ddf66ae430560b98189c25592d325ea
referencesissue #5256issue #3566medium
-comparison.html after the tip note. just FYI there's a ton of PG stuff that we don't have built in right now that are along this line, see #3566 . if you want to work on this stuff it's definitely leveling up but 1.4 should be getting very good at this stuff by now :) > > Als...
97660fc0b5c1e24698abdcd0de4b9acbf303260b77d379aa7908a023d6636e70
referencesissue #5256issue #3566medium
I want to ultiamtely do everything here and in #3566. this comes up all the time. it's just if it is done quickly without consdiering PG's syntactical concepts in total, we can paint ourselves
ae21bcd22215bc615a552e5650f90f51159ea476e1726896d7873c6fb008874d
referencesissue #5256issue #3566medium
Added a comment in #3566. This can be closed, so we can track all the missing pg behaviors from a single place
3dd4c09ac674e5ebeb1966793bea320cea8059b0304dbcc81afb95cba8c6218b
referencesissue #5068issue #5005medium
hen UPDATE if "supports_sane_rowcount" is set to **True** Hi can you define "failed" please? Are you getting the same error as described in #5005 ? > In fact, it is common to disable "supports_sane_rowcount" as a workaround for `pyodbc` and `Microsoft ODBC Driver` does not sup...
783bd19817db559cf44997e51a84a79c0418f8134675a253c04f3c4ef4d24b1f
referencesissue #4797issue #6040medium
ere, which would be pretty weird. The "hint text" should be possible that it is a compiled object, not just a string and that is missing os #6040 is added.
594f606bb1fa02fc0420bbd62bf368ea2661ec500b0b08968d61b562db5f4cae