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.
1 parent a4dbe4e commit 447aaffCopy full SHA for 447aaff
1 file changed
schema-engine/sql-schema-describer/src/sqlite.rs
@@ -275,7 +275,7 @@ impl<'a> SqlSchemaDescriber<'a> {
275
/// so we need to add parentheses when generating prisma schema.
276
/// See <https://github.com/prisma/prisma/issues/29064>
277
fn wrap_in_parentheses(s: &str) -> Cow<'_, str> {
278
- if !s.starts_with('(') && s.ends_with(')') {
+ if !(s.starts_with('(') && s.ends_with(')')) {
279
format!("({})", s).into()
280
} else {
281
s.into()
0 commit comments