Skip to content

Commit

Permalink
Make REFERENCES obey limited length table names
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerkindt committed May 4, 2022
1 parent c7b7401 commit 2d69ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asn1rs-model/src/model/sql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl ToString for SqlType {
| SqlType::BitsReprByByteArrayAndBitsLen => "BYTEA".into(),
SqlType::References(table, column, on_delete, on_update) => format!(
"INTEGER REFERENCES {}({}){}{}",
table,
Model::<Sql>::sql_definition_name(table),
column,
if let Some(cascade) = on_delete {
format!(" ON DELETE {}", cascade.to_string())
Expand Down

0 comments on commit 2d69ca1

Please sign in to comment.