Skip to content

Commit 447aaff

Browse files
authored
fix: condition
1 parent a4dbe4e commit 447aaff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • schema-engine/sql-schema-describer/src

schema-engine/sql-schema-describer/src/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl<'a> SqlSchemaDescriber<'a> {
275275
/// so we need to add parentheses when generating prisma schema.
276276
/// See <https://github.com/prisma/prisma/issues/29064>
277277
fn wrap_in_parentheses(s: &str) -> Cow<'_, str> {
278-
if !s.starts_with('(') && s.ends_with(')') {
278+
if !(s.starts_with('(') && s.ends_with(')')) {
279279
format!("({})", s).into()
280280
} else {
281281
s.into()

0 commit comments

Comments
 (0)