Skip to content

Commit

Permalink
Sqlite: real_money
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Jan 30, 2024
1 parent 3fc6c3a commit 5c55076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/backend/sqlite/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ impl SqliteQueryBuilder {
},
ColumnType::Boolean => "boolean".into(),
ColumnType::Money(precision) => match precision {
Some((precision, scale)) => format!("money({precision}, {scale})"),
None => "money".into(),
Some((precision, scale)) => format!("real_money({precision}, {scale})"),
None => "real_money".into(),
},
ColumnType::Json => "json_text".into(),
ColumnType::JsonBinary => "jsonb_text".into(),
Expand Down
2 changes: 1 addition & 1 deletion src/table/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub struct ColumnDef {
/// | Bit | bit | bit | N/A |
/// | VarBit | bit | varbit | N/A |
/// | Boolean | bool | bool | boolean |
/// | Money | money | money | money |
/// | Money | money | money | real_money |
/// | Json | json | json | json_text |
/// | JsonBinary | json | jsonb | jsonb_text |
/// | Uuid | binary(16) | uuid | uuid_text |
Expand Down

0 comments on commit 5c55076

Please sign in to comment.