Skip to content

Commit

Permalink
remove debugging from handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Bayfield committed Mar 1, 2011
1 parent d4ae571 commit 193f93b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions handler.go
Expand Up @@ -8,7 +8,6 @@ package mysql
import (
"os"
"strconv"
"fmt"
)

// OK packet handler
Expand Down Expand Up @@ -112,9 +111,6 @@ func handleField(p *packetField, c *Client, r *Result) (err os.Error) {

// Row packet hander
func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
defer func() {
fmt.Printf("Error: %#v\n", err)
}()
// Log field result
c.log(1, "[%d] Received row packet", p.sequence)
// Check sequence
Expand Down Expand Up @@ -163,16 +159,13 @@ func handleRow(p *packetRowData, c *Client, r *Result) (err os.Error) {
// Add to row
row = append(row, field)
}
fmt.Printf("%#v\n", row)
// Stored result
if r.mode == RESULT_STORED {
fmt.Println("Appending")
// Cast and append the row
r.rows = append(r.rows, Row(row))
}
// Used result
if r.mode == RESULT_USED {
fmt.Println("Overwriting")
// Only save 1 row, overwrite previous
r.rows = []Row{Row(row)}
}
Expand Down

0 comments on commit 193f93b

Please sign in to comment.