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

Function zeroBasedColumnPosition

backend/plugin/parser/plsql/backup.go:404–416  ·  view source on GitHub ↗
(pos *store.Position)

Source from the content-addressed store, hash-verified

402}
403
404func zeroBasedColumnPosition(pos *store.Position) *store.Position {
405 if pos == nil {
406 return nil
407 }
408 column := pos.Column
409 if column > 0 {
410 column--
411 }
412 return &store.Position{
413 Line: pos.Line,
414 Column: column,
415 }
416}

Callers 1

generateSQLForTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected