MCPcopy Create free account
hub / github.com/lib/pq / parsePortalRowDescribe

Function parsePortalRowDescribe

conn.go:1789–1807  ·  view source on GitHub ↗
(r *readBuf)

Source from the content-addressed store, hash-verified

1787}
1788
1789func parsePortalRowDescribe(r *readBuf) rowsHeader {
1790 n := r.int16()
1791 colNames := make([]string, n)
1792 colFmts := make([]format, n)
1793 colTyps := make([]fieldDesc, n)
1794 for i := range colNames {
1795 colNames[i] = r.string()
1796 r.next(6)
1797 colTyps[i].OID = r.oid()
1798 colTyps[i].Len = r.int16()
1799 colTyps[i].Mod = r.int32()
1800 colFmts[i] = format(r.int16())
1801 }
1802 return rowsHeader{
1803 colNames: colNames,
1804 colFmts: colFmts,
1805 colTyps: colTyps,
1806 }
1807}
1808
1809func (cn *conn) ResetSession(ctx context.Context) error {
1810 // Ensure bad connections are reported: From database/sql/driver:

Callers 3

simpleQueryMethod · 0.85
NextMethod · 0.85

Calls 6

formatTypeAlias · 0.85
oidMethod · 0.80
int16Method · 0.45
stringMethod · 0.45
nextMethod · 0.45
int32Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…