mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +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 {
|
func (d *SqlDb) makeObjectsQuery(projectID int, props db.ObjectProps, params db.RetrieveQueryParams) squirrel.SelectBuilder {
|
||||||
q := squirrel.Select("*").
|
q := squirrel.Select("*").
|
||||||
From(props.TableName + " pe")
|
From("`" + props.TableName + "` pe")
|
||||||
|
|
||||||
if !props.IsGlobal {
|
if !props.IsGlobal {
|
||||||
q = q.Where("pe.project_id=?", projectID)
|
q = q.Where("pe.project_id=?", projectID)
|
||||||
|
Loading…
Reference in New Issue
Block a user