fix: convert log strings to bytes in go, not sql
Without this fix, the following line in a model definition:
print('\\"')
would result in an SQL syntax error.
@@ -287,7 +287,7 @@ VALUES
fmt.Fprintf(&text, " ($%d, $%d, $%d, $%d, $%d, $%d, $%d, $%d, $%d, $%d)",
i*10+1, i*10+2, i*10+3, i*10+4, i*10+5, i*10+6, i*10+7, i*10+8, i*10+9, i*10+10)
- args = append(args, log.TaskID, log.AllocationID, log.Log, log.AgentID, log.ContainerID,
+ args = append(args, log.TaskID, log.AllocationID, []byte(log.Log), log.AgentID, log.ContainerID,
log.RankID, log.Timestamp, log.Level, log.StdType, log.Source)
}
