temporalio/temporal · error
error reading contents: unmatched quotes
Error message
error reading contents: unmatched quotes
What it means
Error "error reading contents: unmatched quotes" thrown in temporalio/temporal.
Source
Thrown at common/persistence/query_util.go:160
}
st = st[:len(st)-1]
j = after + len(sqlLoopKeyword) - 1
} else {
if len(st) == 0 || st[len(st)-1] != sqlBeginKeyword[0] {
return nil, errors.New("error reading contents: unmatched `END` keyword")
}
st = st[:len(st)-1]
j += len(sqlEndKeyword) - 1
}
case sqlSingleQuote, sqlDoubleQuote:
quote := contentStr[j]
j++
for j < n && contentStr[j] != quote {
j++
}
if j == n {
return nil, fmt.Errorf("error reading contents: unmatched quotes")
}
case sqlLineComment[0]:
if j+len(sqlLineComment) <= n && contentStr[j:j+len(sqlLineComment)] == sqlLineComment {
_, _ = stmtBuilder.Write(bytes.TrimRight(content[i:j], " "))
for j < n && contentStr[j] != '\n' {
j++
}
i = j
}
default:
// no-op: generic character
}
}
if len(st) > 0 {
switch st[len(st)-1] {View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/persistence/query_util.go:160 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/c2ee365f324551c5.
Report an issue: GitHub.