(rows *sqlorig.Rows, columnCount int)
| 281 | } |
| 282 | |
| 283 | func ScanGenericRow(rows *sqlorig.Rows, columnCount int) (RowData, error) { |
| 284 | values := make(RowData, columnCount) |
| 285 | valuePtrs := make(RowData, columnCount) |
| 286 | |
| 287 | for i, _ := range values { |
| 288 | valuePtrs[i] = &values[i] |
| 289 | } |
| 290 | |
| 291 | err := rows.Scan(valuePtrs...) |
| 292 | return values, err |
| 293 | } |
| 294 | |
| 295 | func ScanByteRow(rows *sqlorig.Rows, columnCount int) ([][]byte, error) { |
| 296 | values := make([][]byte, columnCount) |
no outgoing calls