| // Go MySQL Driver - A MySQL-Driver for Go's database/sql package |
| // Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved. |
| // This Source Code Form is subject to the terms of the Mozilla Public |
| // License, v. 2.0. If a copy of the MPL was not distributed with this file, |
| // You can obtain one at http://mozilla.org/MPL/2.0/. |
| func (rows *mysqlRows) Columns() []string { |
| columns := make([]string, len(rows.columns)) |
| columns[i] = rows.columns[i].name |
| func (rows *mysqlRows) Close() error { |
| // Remove unread packets from stream |
| func (rows *binaryRows) Next(dest []driver.Value) error { |
| if mc := rows.mc; mc != nil { |
| // Fetch next row from stream |
| if err := rows.readRow(dest); err != io.EOF { |
| func (rows *textRows) Next(dest []driver.Value) error { |
| if mc := rows.mc; mc != nil { |
| // Fetch next row from stream |
| if err := rows.readRow(dest); err != io.EOF { |