lifedebugger commited on
Commit
e68b4ef
·
1 Parent(s): b105c1a

Deploy files from GitHub repository

Browse files
Files changed (1) hide show
  1. repositories/repair_repository.go +2 -2
repositories/repair_repository.go CHANGED
@@ -37,8 +37,8 @@ func (r *repairRepository) RepairQuestionStoragePath(ctx context.Context) (int64
37
  func (r *repairRepository) RepairProblemSetNamingMigrate(ctx context.Context, startDate string, endDate string, prefix string) (int64, error) {
38
  sql := `
39
  UPDATE problem_set
40
- SET title = CONCAT(?, title)
41
- WHERE created_at BETWEEN ? AND ?;
42
  `
43
 
44
  records := r.db.WithContext(ctx).Exec(sql, prefix, startDate, endDate)
 
37
  func (r *repairRepository) RepairProblemSetNamingMigrate(ctx context.Context, startDate string, endDate string, prefix string) (int64, error) {
38
  sql := `
39
  UPDATE problem_set
40
+ SET title = CONCAT(?::text, title)
41
+ WHERE created_at BETWEEN ?::timestamp AND ?::timestamp;
42
  `
43
 
44
  records := r.db.WithContext(ctx).Exec(sql, prefix, startDate, endDate)