mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
fix(be): escape table name option (need for mysql)
This commit is contained in:
parent
f81151416f
commit
63e602afbb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user