Skip to content

Commit fe468cf

Browse files
committed
Fixed build without sqlite
1 parent 12c664a commit fe468cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rorm-sql"
3-
version = "0.9.2"
3+
version = "0.9.3"
44
edition = "2021"
55
keywords = ["database", "abstraction-layer", "sqlite", "postgres", "mysql"]
66
categories = ["database"]

src/conditional.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ impl<'a> BuildCondition<'a> for BinaryCondition<'a> {
125125
lhs.build_to_writer(writer, dialect, lookup)?;
126126
write!(writer, " {keyword} ")?;
127127
rhs.build_to_writer(writer, dialect, lookup)?;
128+
#[cfg(feature = "sqlite")]
128129
if matches!(dialect, DBImpl::SQLite) && matches!(keyword, "LIKE" | "NOT LIKE") {
129130
// Sqlite does not default it
130131
write!(writer, " ESCAPE '\'")?;

0 commit comments

Comments
 (0)