feat(sql): Add common whitespace characters, ASCII, HTML, backslashes to literal escaping
This commit is contained in:
@@ -44,7 +44,7 @@ func Update(s *schema.Table, data map[string]any, where map[string]any) (*string
|
||||
}
|
||||
|
||||
ddl := fmt.Sprintf(sql.DML_UPDATE, sql.QuoteIdent(s.Name), strings.Join(setParts, ", "), whereClause)
|
||||
log.Printf("DDL: %s", ddl)
|
||||
|
||||
return &ddl, nil
|
||||
}
|
||||
|
||||
@@ -59,6 +59,6 @@ func UpdateDeletedAt(s *schema.Table, where map[string]any) (*string, error) {
|
||||
}
|
||||
|
||||
ddl := fmt.Sprintf(sql.DML_UPDATE, sql.QuoteIdent(s.Name), "deleted_at = CURRENT_TIMESTAMP", whereClause)
|
||||
log.Printf("DDL: %s", ddl)
|
||||
|
||||
return &ddl, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user