MCPcopy Index your code
hub / github.com/bytebase/bytebase / FormatDBErrorEmptyRowWithQuery

Function FormatDBErrorEmptyRowWithQuery

backend/common/error.go:120–122  ·  view source on GitHub ↗

FormatDBErrorEmptyRowWithQuery formats database error that query returns empty row.

(query string)

Source from the content-addressed store, hash-verified

118
119// FormatDBErrorEmptyRowWithQuery formats database error that query returns empty row.
120func FormatDBErrorEmptyRowWithQuery(query string) error {
121 return Errorf(DBExecutionError, "query %q returned empty row", query)
122}

Callers 15

getServerVariableMethod · 0.92
getVersionMethod · 0.92
GetSearchPathMethod · 0.92
getVersionMethod · 0.92
getServerVariableMethod · 0.92
getVersionMethod · 0.92
getTableStmtFunction · 0.92
getRoutineStmtFunction · 0.92
getEventStmtFunction · 0.92
getVersionMethod · 0.92
getVersionMethod · 0.92
getServerVariableMethod · 0.92

Calls 1

ErrorfFunction · 0.85

Tested by

no test coverage detected