mirror of https://github.com/hwchase17/langchain
fix sql misinterpretation of % in query (#1408)
% is being misinterpreted by sqlalchemy as parameter passing, so any `LIKE 'asdf%'` will result in a value error with mysql, mariadb, and maybe some others. This is one way to fix it - the alternative is to simply double up %, like `LIKE 'asdf%%'` but this seemed cleaner in terms of output. Fixes #1383pull/1410/head
parent
443992c4d5
commit
882f7964fb
Loading…
Reference in New Issue