We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ESCAPE
LIKE
1 parent bb95f1d commit e6e44e4Copy full SHA for e6e44e4
src/conditional.rs
@@ -125,6 +125,10 @@ impl<'a> BuildCondition<'a> for BinaryCondition<'a> {
125
lhs.build_to_writer(writer, dialect, lookup)?;
126
write!(writer, " {keyword} ")?;
127
rhs.build_to_writer(writer, dialect, lookup)?;
128
+ if matches!(dialect, DBImpl::SQLite) && matches!(keyword, "LIKE" | "NOT LIKE") {
129
+ // Sqlite does not default it
130
+ write!(writer, " ESCAPE '\'")?;
131
+ }
132
write!(writer, ")")?;
133
Ok(())
134
}
0 commit comments