Skip to content

Commit

Permalink
orm: quote table and field name in [references] (#19387)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvln committed Sep 20, 2023
1 parent cb9584f commit 6d56639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/orm/orm.v
Expand Up @@ -572,7 +572,7 @@ pub fn orm_table_gen(table string, q string, defaults bool, def_unique_len int,
unique_fields << f
}
if references_table != '' {
stmt += ' REFERENCES ${references_table} (${references_field})'
stmt += ' REFERENCES ${q}${references_table}${q}(${q}${references_field}${q})'
}
fs << stmt
}
Expand Down

0 comments on commit 6d56639

Please sign in to comment.