fix(be): escape table name option (need for mysql)

This commit is contained in:
fiftin 2024-07-10 02:09:05 +05:00
parent f81151416f
commit 63e602afbb
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -204,7 +204,7 @@ func (d *SqlDb) getObject(projectID int, props db.ObjectProps, objectID int, obj
func (d *SqlDb) makeObjectsQuery(projectID int, props db.ObjectProps, params db.RetrieveQueryParams) squirrel.SelectBuilder {
q := squirrel.Select("*").
From(props.TableName + " pe")
From("`" + props.TableName + "` pe")
if !props.IsGlobal {
q = q.Where("pe.project_id=?", projectID)