Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Do not quote default values #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl SqlGenerator for MySql {
false => "",
},
match (&tt.default).as_ref() {
Some(ref m) => format!(" DEFAULT '{}'", m),
Some(ref m) => format!(" DEFAULT {}", m),
_ => format!(""),
},
match tt.nullable {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/pg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl SqlGenerator for Pg {
false => "",
},
match (&tt.default).as_ref() {
Some(ref m) => format!(" DEFAULT '{}'", m),
Some(ref m) => format!(" DEFAULT {}", m),
_ => format!(""),
},
match tt.nullable {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/sqlite3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl SqlGenerator for Sqlite {
false => "",
},
match (&tt.default).as_ref() {
Some(ref m) => format!(" DEFAULT '{}'", m),
Some(ref m) => format!(" DEFAULT {}", m),
_ => format!(""),
},
match tt.nullable {
Expand Down