diff options
author | Federico Caselli <cfederico87@gmail.com> | 2022-07-30 12:40:37 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2022-08-01 21:47:36 +0000 |
commit | 63d90b0f44016b15bed6c4108d90a71c15f05a09 (patch) | |
tree | 5e2a360eab5e722edefbbd4ea2bb717c7294c87f /test/dialect/postgresql/test_compiler.py | |
parent | 3ff18812d8d80b2016ceeea98c808a76cae85e48 (diff) | |
download | sqlalchemy-63d90b0f44016b15bed6c4108d90a71c15f05a09.tar.gz |
SQLite reflection ignores schema internal names
Added new parameter to SQLite for reflection methods called
``sqlite_include_internal=True``; when omitted, local tables that start
with the prefix ``sqlite_``, which per SQLite documentation are noted as
"internal schema" tables such as the ``sqlite_sequence`` table generated to
support "AUTOINCREMENT" columns, will not be included in reflection methods
that return lists of local objects. This prevents issues for example when
using Alembic autogenerate, which previously would consider these
SQLite-generated tables as being remove from the model.
Fixes: #8234
Change-Id: I36ee7a053e04b6c46c912aaa0d7e035a5b88a4f9
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions