MCPcopy
hub / github.com/sqldef/sqldef / scanDoubleQuotedString

Function scanDoubleQuotedString

database/mssql/parser.go:407–420  ·  view source on GitHub ↗
(sql string, start int)

Source from the content-addressed store, hash-verified

405}
406
407func scanDoubleQuotedString(sql string, start int) int {
408 i := start + 1
409 for i < len(sql) {
410 if sql[i] == '"' {
411 if i+1 < len(sql) && sql[i+1] == '"' {
412 i += 2
413 continue
414 }
415 return i + 1
416 }
417 i++
418 }
419 return len(sql)
420}
421
422func scanBracketIdentifier(sql string, start int) int {
423 i := start + 1

Calls

no outgoing calls

Tested by

no test coverage detected