]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use ``re.search`` instead of ``re.match`` in sqlite
authorFederico Caselli <cfederico87@gmail.com>
Sun, 15 Nov 2020 15:58:46 +0000 (16:58 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Nov 2020 18:49:32 +0000 (13:49 -0500)
commitec264a5a2c810394ee4ebd7a78f83fc0ea785c1f
tree8b4caff6a39429167584bcb4f9f5c39c1fbecc41
parentcef2871ef99af3cc6a40d98a2651c6dad7542d75
Use ``re.search`` instead of ``re.match`` in sqlite

Use python ``re.search()`` instead of ``re.match()`` as the operation
used by the :meth:`Column.regexp_match` method when using sqlite.
This matches the behavior of regular expressions on other databases
as well as that of well-known SQLite plugins.

Fixes: #5699
Change-Id: I14b2c7faf51fef172842aeb2dba2500f14544f24
doc/build/changelog/unreleased_14/5699.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/sqlite/pysqlite.py
lib/sqlalchemy/testing/suite/test_select.py