]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Create a compiler hook to pick up custom objects in expressions 8886/head
authorLele Gaifax <lele@metapensiero.it>
Sun, 27 Nov 2022 16:06:49 +0000 (17:06 +0100)
committerLele Gaifax <lele@metapensiero.it>
Sun, 27 Nov 2022 16:06:49 +0000 (17:06 +0100)
commit6e95e08a30597d3735ab38f2f1a2ccabd968852c
tree1fb1f68193620dcf24110b0c96c82bb1b71f620f
parent34e29f7b225cf1305e151af9d03ef95f42a9dbcc
Create a compiler hook to pick up custom objects in expressions

This simply applies what has been suggested by Mike in issue #8884, and
seems to work. I guess more work is needed, for example mentioning
and/or documenting the new __sa_type_engine__ hook.
lib/sqlalchemy/dialects/postgresql/ranges.py
lib/sqlalchemy/sql/sqltypes.py
test/dialect/postgresql/test_compiler.py