mirror of
https://github.com/vlang/v.git
synced 2025-09-12 08:57:09 -04:00
orm: quote table and field name in [references]
(#19387)
This commit is contained in:
parent
cb9584fefe
commit
6d56639cc1
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user